Hi, I have got problem with update model
$robot = Robots::findFirst("id=7");
$robot->color = "blue";
$robot->update();
I got PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens What could make this error ?
#0 PDOStatement->execute()
#1 Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array(20), Array(20))
#2 Phalcon\Db\Adapter\Pdo->execute(UPDATE `****` SET `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `***` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `****` = ?, `***` = ? WHERE 0, Array(20), Array(20))
#3 Phalcon\Db\Adapter->update(****, Array(19), Array(19), Array([conditions] => 1, [bind] => Array([0] => 17), [bindTypes] => 0), Array(19))
#4 Phalcon\Mvc\Model->_doLowUpdate(Object(Phalcon\Mvc\Model\MetaData\Memory), Object(Phalcon\Db\Adapter\Pdo\Mysql), rozliczenia)
#5 Phalcon\Mvc\Model->save()
#6 Phalcon\Mvc\Model->update()