What steps will reproduce the problem?
1. generate model for test table (2 fields - id, description)
2. execute $record =OrmtestModel::findById($db, 1);
I expect to get the record where id=1
but instead get the following error
Code: 8
Message: Undefined index: SELECT * FROM `ormtest` WHERE `id`=?
File: OrmtestModel.class.php
Line: 235
I am using version 1.105 in Netbeans 7.1.2
However, if I execute
Ormtest::findBySql($db, "select * from ormtest where id = 1")
The correct record is returned.
Original issue reported on code.google.com by
cvpeter...@gmail.comon 3 Jul 2012 at 8:39