Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-06-19 | Update tests to not expect generic exception, as PHPUnit < 3.7 (PHP 5.2) ↵ | Mitch | |
can't handle it | |||
2014-06-19 | Fix merge conflicts | Mitch | |
2014-06-19 | offsetExists() should return true for null values, resolves #181 | Mitch | |
2014-06-18 | Update README.markdown | Simon Holywell | |
2014-06-18 | Document latest pull request merges | Simon Holywell | |
2014-06-18 | Merge pull request #208 from SneakyBobito/patch-1 | Simon Holywell | |
Fix bindParams to bindParam | |||
2014-06-11 | Add contributing text | Simon Holywell | |
2014-06-08 | update bindParams to bindParam | Soufiane Ghzal | |
2014-06-07 | Update idiorm.php | Soufiane Ghzal | |
2014-06-07 | Tests for 27fb7f29a849270b329533b8f7944beb163b1c06 | Mitch | |
2014-06-07 | MockPDOStatement::execute() Strict Standards | Mitch | |
2014-06-03 | Merge pull request #206 from charsleysa/develop | Simon Holywell | |
Fix for parameter types. | |||
2014-05-29 | Removed useless code. | Stefan Andres Charsley | |
2014-05-29 | Fixed type checks. | Stefan Andres Charsley | |
Only make integers type int, all other number types get passed as strings. | |||
2014-05-29 | Fixed testing logic. | Stefan Andres Charsley | |
2014-05-29 | Fixed testing. | Stefan Andres Charsley | |
2014-05-29 | Fix typos. | Stefan Andres Charsley | |
2014-05-29 | Fix for parameter types. | Stefan Andres Charsley | |
2014-05-29 | Restrict null primary keys on update/delete, resolves #203 | Mitch | |
2014-05-28 | Document updates in the changelog | Simon Holywell | |
2014-05-28 | Merge pull request #202 from lrlopez/where_id_in-2 | Simon Holywell | |
where_id_in() for selecting multiple records by primary key | |||
2014-05-28 | Merge pull request #201 from lrlopez/where_any_is | Simon Holywell | |
Multiple OR'ed conditions support | |||
2014-05-28 | Merge pull request #197 from kendru/issue176 | Simon Holywell | |
Correct issue #176: Ensure database setup before building select | |||
2014-05-18 | where_id_in() for selecting multiple records by primary key | Luis Ramón López | |
2014-05-18 | Multiple OR'ed conditions support | Luis Ramón López | |
Multiple OR'ed conditions ------------------------- You can add simple ORed conditions to the same WHERE clause using ``where_any_is``. You should specify multiple conditions using an array of items. Each item will be an associative array that contains a multiple conditions. ```php <?php $people = ORM::for_table('person') ->where_any_is(array( array('name' => 'Joe', 'age' => 10), array('name' => 'Fred', 'age' => 20))) ->find_many(); // Creates SQL: SELECT * FROM `widget` WHERE (( `name` = 'Joe' AND `age` = '10' ) OR ( `name` = 'Fred' AND `age` = '20' )); ``` By default, it uses the equal operator for every column, but it can be overriden for any column using a second parameter: ```php <?php $people = ORM::for_table('person') ->where_any_is(array( array('name' => 'Joe', 'age' => 10), array('name' => 'Fred', 'age' => 20)), array('age' => '>')) ->find_many(); // Creates SQL: SELECT * FROM `widget` WHERE (( `name` = 'Joe' AND `age` > '10' ) OR ( `name` = 'Fred' AND `age` > '20' )); ``` If you want to set the default operator for all the columns, just pass it as the second parameter: ```php <?php $people = ORM::for_table('person') ->where_any_is(array( array('score' => '5', 'age' => 10), array('score' => '15', 'age' => 20)), '>') ->find_many(); // Creates SQL: SELECT * FROM `widget` WHERE (( `score` > '5' AND `age` > '10' ) OR ( `score` > '15' AND `age` > '20' )); ``` | |||
2014-05-06 | Modify test to run query with db not explicitly set | Andrew Meredith | |
2014-05-06 | Ensure database set up always | Andrew Meredith | |
2014-04-26 | Document PRs #171 and #163 | Simon Holywell | |
2014-04-26 | 1. Adjustment of code to work with multiple raw_joins 2. Test multiple raw joins | Igor Moiseev | |
2014-04-26 | Docs on raw_join implementation | Igor Moiseev | |
2014-04-26 | Implemetation of raw_join | Igor Moiseev | |
2014-04-26 | Add a RAW JOIN source to the query | Igor Moiseev | |
2014-04-26 | Document the new compound primary keys behaviour and features | Luis Ramón López | |
2014-04-26 | Tests for compound primary keys queries added | Luis Ramón López | |
2014-04-26 | INSERT queries are now compound primary keys aware | Luis Ramón López | |
2014-04-26 | delete() method is now compound primary keys aware | Luis Ramón López | |
2014-04-26 | UPDATE queries are now compound primary keys aware | Luis Ramón López | |
2014-04-26 | having_*() methods are now compound primary key aware | Luis Ramón López | |
Also, now they allow multiple column-names per call. | |||
2014-04-26 | where_*() methods are now compound primary key aware | Luis Ramón López | |
Also, now they allow multiple column-names per call. | |||
2014-04-26 | Multiple column names can now be specified when calling get() | Luis Ramón López | |
2014-04-26 | Added a protected method for filtering multiple column primary keys | Luis Ramón López | |
2014-04-26 | Add support for adding multi-column conditions into queries | Luis Ramón López | |
2014-04-26 | Document improved testing suite PR | Simon Holywell | |
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Remove some empty results from the array before checking. | |||
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Updated preg_match_all parameters. | |||
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Changed some debugging code. | |||
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Added some more debug code. | |||
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Added debug code to see why it's failing. | |||
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Fixed the regex not having backslashes escaped. | |||
2014-04-26 | FIX: Added parameter array checking | Stefan Andres Charsley | |
Updated regex to disregard placeholders within quotes. |