I'm trying to save a boolean value into PostreSQL RDBMS. Simplified it looks like following:
// POST => array("field" => "false") $model->save($this->getPost());
However field remains true. If I manually use boolean value false, then it works ok. PostgreSQL itself knows that "false" string is false
SELECT 'false'::boolean -- Returns: f
So it seems like Phalcon converts the value into boolean itself somewhere inside before saving, so that "false" string becomes true (which is logical, it's not an empty string).
Does anyone have any hints on how can I avoid such behavior?