Skip to content

Instantly share code, notes, and snippets.

@pfz
pfz / phalcon_orm_datatype_bug.php
Last active August 16, 2016 04:20
All in one script to show bug with Phalcon 3.0 on type casting bug and use of mysql BIT(1)
<?php
/*
All in one script to show bug with Phalcon 3.0 on type casting bug and use of mysql BIT(1).
My purpose is to get a configuration allowing a coherent type binding, while being able to use snapshots in models.
Default configuration works but is not satisfying for reason #1 :
[
'use_bit' => true,
'use_dynamic_update' => false, (default)
'cast_on_hydrate' => true, (forced)