summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-19Add merges to the changelogSimon Holywell
2015-01-19Merge pull request #237 from stellis/developSimon Holywell
Added @method tags for magic methods
2014-10-31Issue #224 having_id_is undefined variable $valueSimon Holywell
Correct incorrect copy and paste
2014-10-01Added note about the purpose of the magic-method documentationStephen Tellis
2014-10-01Added @method tags for magic methodsStephen Tellis
2014-06-27Update the changelogSimon Holywell
2014-06-27Merge pull request #223 from m92o/named-placeholders-loggingSimon Holywell
Support named placeholders logging and test
2014-06-27Issue #224 having_id_is undefined variable $valueSimon Holywell
2014-06-24Support named placeholders logging and testKunio Murasawa
2014-06-23Add note about fixes to changelogSimon Holywell
2014-06-23Merge pull request #221 from cainmi/issue-219Simon Holywell
Fix for #219: binding named parameters broken
2014-06-23Swap switch for if/elseMitch
2014-06-23Remove code replaces by prev commitMitch
2014-06-23Fix for name params, resolves #219Mitch
2014-06-22Add release dateSimon Holywell
2014-06-22Document project statusSimon Holywell
2014-06-22Tidy up the caching pull requestSimon Holywell
2014-06-22Added custom caching functionsPeter Ivanov
This is a combination of 20 commits: added cache callback #212 added test Added text for custom cache formating and tests added caching_auto_clear option moved custom cache test for php 5.3+ fixed ConfigTest.php tabs to spaces formating formating added `create_cache_key` callback option added $table_name to clear cache function added $table_name to _create_cache_key added missing params added $table_name to cache_query_result formating tabs added $table_name to check_query_cache unify cache parameters order `table_name` is more important than `connection_name` formating
2014-06-21Update README.markdownSimon Holywell
2014-06-21Merge pull request #205 from cainmi/developSimon Holywell
Restrict null primary keys on update/delete, resolves #203
2014-06-20Update README.markdownSimon Holywell
2014-06-20Merge pull request #214 from cainmi/issue-181Simon Holywell
offsetExists() should return true for null values, resolves #181
2014-06-19Update tests to not expect generic exception, as PHPUnit < 3.7 (PHP 5.2) ↵Mitch
can't handle it
2014-06-19Fix merge conflictsMitch
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-07Tests for 27fb7f29a849270b329533b8f7944beb163b1c06Mitch
2014-06-07MockPDOStatement::execute() Strict StandardsMitch
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-29Restrict null primary keys on update/delete, resolves #203Mitch
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