summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-20Merge pull request #214 from cainmi/issue-181Simon Holywell
offsetExists() should return true for null values, resolves #181
2014-06-19offsetExists() should return true for null values, resolves #181Mitch
2014-06-18Update README.markdownSimon Holywell
2014-06-18Document latest pull request mergesSimon Holywell
2014-06-18Merge pull request #208 from SneakyBobito/patch-1Simon Holywell
Fix bindParams to bindParam
2014-06-11Add contributing textSimon Holywell
2014-06-08update bindParams to bindParamSoufiane Ghzal
2014-06-07Update idiorm.phpSoufiane Ghzal
2014-06-03Merge pull request #206 from charsleysa/developSimon Holywell
Fix for parameter types.
2014-05-29Removed useless code.Stefan Andres Charsley
2014-05-29Fixed type checks.Stefan Andres Charsley
Only make integers type int, all other number types get passed as strings.
2014-05-29Fixed testing logic.Stefan Andres Charsley
2014-05-29Fixed testing.Stefan Andres Charsley
2014-05-29Fix typos.Stefan Andres Charsley
2014-05-29Fix for parameter types.Stefan Andres Charsley
2014-05-28Document updates in the changelogSimon Holywell
2014-05-28Merge pull request #202 from lrlopez/where_id_in-2Simon Holywell
where_id_in() for selecting multiple records by primary key
2014-05-28Merge pull request #201 from lrlopez/where_any_isSimon Holywell
Multiple OR'ed conditions support
2014-05-28Merge pull request #197 from kendru/issue176Simon Holywell
Correct issue #176: Ensure database setup before building select
2014-05-18where_id_in() for selecting multiple records by primary keyLuis Ramón López
2014-05-18Multiple OR'ed conditions supportLuis 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-06Modify test to run query with db not explicitly setAndrew Meredith
2014-05-06Ensure database set up alwaysAndrew Meredith
2014-04-26Document PRs #171 and #163Simon Holywell
2014-04-261. Adjustment of code to work with multiple raw_joins 2. Test multiple raw joinsIgor Moiseev
2014-04-26Docs on raw_join implementationIgor Moiseev
2014-04-26Implemetation of raw_joinIgor Moiseev
2014-04-26Add a RAW JOIN source to the queryIgor Moiseev
2014-04-26Document the new compound primary keys behaviour and featuresLuis Ramón López
2014-04-26Tests for compound primary keys queries addedLuis Ramón López
2014-04-26INSERT queries are now compound primary keys awareLuis Ramón López
2014-04-26delete() method is now compound primary keys awareLuis Ramón López
2014-04-26UPDATE queries are now compound primary keys awareLuis Ramón López
2014-04-26having_*() methods are now compound primary key awareLuis Ramón López
Also, now they allow multiple column-names per call.
2014-04-26where_*() methods are now compound primary key awareLuis Ramón López
Also, now they allow multiple column-names per call.
2014-04-26Multiple column names can now be specified when calling get()Luis Ramón López
2014-04-26Added a protected method for filtering multiple column primary keysLuis Ramón López
2014-04-26Add support for adding multi-column conditions into queriesLuis Ramón López
2014-04-26Document improved testing suite PRSimon Holywell
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Remove some empty results from the array before checking.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Updated preg_match_all parameters.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Changed some debugging code.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Added some more debug code.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Added debug code to see why it's failing.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Fixed the regex not having backslashes escaped.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Updated regex to disregard placeholders within quotes.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Fixed regex issue that caused almost all tests to fail.
2014-04-26Added parameter array checkingStefan Andres Charsley
Testing: Checks the parameter array to ensure the correct number of values inside the parameter with sequential integer indexes. Production: Strips out any non-integer indexes from the parameter array inside the _log_query function.
2014-04-26Merge precedence docsSimon Holywell
2014-04-26Note about precedenceThomas Dybdahl Ahle