Releases: legomolina/simple-orm
Releases · legomolina/simple-orm
Loop returns false if there isn't any results
2.0.1 Loop returns false if there isn't any register to loop.
Object oriented results
Now, \SimpleORM\ResultSet class returns objects instead arrays so accessing fields is now much simple!
$result = MyModel::all()->execute();
while($result->loop()) {
$result->field;
$result->field_2;
}
Also I've included a loop method to loop through all registers. Now next(), prev(), first() and last() methods are for manual loop.
1.2.6
Setted strict mode for "valueExists" method.
Updated ResultSet
Now, findValue checks if a ResultSet exists before executing for loop
Database charset
Now, you can change the database charset in the array passed to Config method.
Update statement works as prepared statement
Model::getConnection()
is now protected and update statement is now working as prepared statement.
Bugfix with several implementations
1.2.2 Solved bugfix with multiple uses of Model
Fixing bugs with next and last methods
1.2.1 next() and last() methods returns false if there are not more registers
Changed internal pointer ResultSet
Removed hasMore()
method.
Now, before you can work with data, you must initialize the ResultSet with next()
, first()
or last()
method.
Bugfix with hasMore()
1.1.5 Bugfix for hasMore method, now don't set the result to the next one