Hello All.
I found bug in ORM, I think.
I use profiler to view all queries in page. If I use pure sql query:
$phql = "SELECT * FROM general_table where key = '$key' FOR UPDATE;";
$row = Phalcon\DI::getDefault()->getShared('db')->query($phql)->fetch();
logger showes to me - 'SELECT * FROM general_table where key = 'abc' FOR UPDATE;'
If I use model:
$row = Model\General\GeneralTable::findFirst(
array(
"limit" => 1,
"conditions" => 'key= :key:',
"bind" => array('key'=>$key),
"for_update" => true
)
);
logger showes only: 'SELECT * FROM general_table WHERE key = 'abc'
It's means "FOR UPDATE" doesn't append to query.
Can somebody help to me???
UPDATE: Phalcon 1.3.2