summaryrefslogtreecommitdiff
path: root/idiorm.php
AgeCommit message (Collapse)Author
2022-03-26add serialize functions for php 8.1HEADmasterAaron Parecki
2022-03-26add annotations for php 8.1 compatibilityAaron Parecki
2019-12-11Fix argument order in call to join().Cătălin Frâncu
2018-05-23Assign null to self::$_db on reset to ensure PDO closes the connectionsCato Auestad
2018-01-03Closes #319 - no reset on cached responseSimon Holywell
2017-07-22Update phpdockawausokun
2016-12-14Merge branch 'bugfix-orm-is-dirty' of https://github.com/tentwofour/idiorm ↵Simon Holywell
into tentwofour-bugfix-orm-is-dirty
2016-12-14Merge branch 'develop' of github.com:j4mie/idiorm into developSimon Holywell
2016-12-14Merge pull request #235 from lrlopez/compound_key_fixSimon Holywell
Fix autoincremented compound keys inserts
2016-12-14#301 nested loop shouldn't override parent varMichael Keck
2015-04-07Update ORM#is_dirty - swapped isset() for array_key_exists() - isset() will ↵blair
return false when fields have been set null. Update ORMTest#testIsDirty - added tests for filed set to '' and null
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-09-20Fix autoincremented compound keys insertsLuis Ramón López
When inserting new records on a autoincremented compound keys table, a bug would prevent updating the autoincremented value. Fixes #233
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-23Swap switch for if/elseMitch
2014-06-23Remove code replaces by prev commitMitch
2014-06-23Fix for name params, resolves #219Mitch
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-21Merge pull request #205 from cainmi/developSimon Holywell
Restrict null primary keys on update/delete, resolves #203
2014-06-20Merge pull request #214 from cainmi/issue-181Simon Holywell
offsetExists() should return true for null values, resolves #181
2014-06-19Fix merge conflictsMitch
2014-06-19offsetExists() should return true for null values, resolves #181Mitch
2014-06-07Update idiorm.phpSoufiane Ghzal
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-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-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-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-06Ensure database set up alwaysAndrew Meredith
2014-04-261. Adjustment of code to work with multiple raw_joins 2. Test multiple raw joinsIgor Moiseev
2014-04-26Implemetation of raw_joinIgor Moiseev
2014-04-26Add a RAW JOIN source to the queryIgor Moiseev
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-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.