I am trying to use findFirst()
to load models by NULL value of field
:
$model = MyModel::findFirst([
'conditions' => 'field=?0',
'bind' => [
0 => null,
],
'bindTypes' => [
0 => Phalcon\Db\Column::BIND_PARAM_NULL,
]
]);
This does not find the row whose field
value is NULL.
Question:
How do I use findFirst
to load models by NULL value of a field?
Thanks!