Skip to content

Releases: legomolina/simple-orm

Loop returns false if there isn't any results

22 Mar 13:17
Compare
Choose a tag to compare
2.0.1

Loop returns false if there isn't any register to loop.

Object oriented results

17 Feb 00:25
Compare
Choose a tag to compare

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

11 Feb 13:38
Compare
Choose a tag to compare
Setted strict mode for "valueExists" method.

Updated ResultSet

09 Feb 00:28
Compare
Choose a tag to compare

Now, findValue checks if a ResultSet exists before executing for loop

Database charset

01 Nov 16:31
Compare
Choose a tag to compare

Now, you can change the database charset in the array passed to Config method.

Update statement works as prepared statement

30 Oct 12:54
Compare
Choose a tag to compare

Model::getConnection() is now protected and update statement is now working as prepared statement.

Bugfix with several implementations

28 Oct 15:31
Compare
Choose a tag to compare
1.2.2

Solved bugfix with multiple uses of Model

Fixing bugs with next and last methods

27 Oct 19:06
Compare
Choose a tag to compare
1.2.1

next() and last() methods returns false if there are not more registers

Changed internal pointer ResultSet

27 Oct 18:57
Compare
Choose a tag to compare

Removed hasMore() method.

Now, before you can work with data, you must initialize the ResultSet with next(), first() or last() method.

Bugfix with hasMore()

27 Oct 17:54
Compare
Choose a tag to compare
1.1.5

Bugfix for hasMore method, now don't set the result to the next one