Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-05-29 | Fix typos. | Stefan Andres Charsley | |
2014-05-29 | Fix for parameter types. | Stefan Andres Charsley | |
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-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 | Ensure database set up always | Andrew Meredith | |
2014-04-26 | 1. Adjustment of code to work with multiple raw_joins 2. Test multiple raw joins | 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 | 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 | Added parameter array checking | Stefan 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-20 | Merge branch 'master' of github.com:AgelxNash/idiorm into develop | Simon Holywell | |
Conflicts: idiorm.php | |||
2014-02-14 | Query Time | AgelxNash | |
2013-12-26 | Adds new IdiormMethodMissingException class for missing magic method calls ↵ | michaelward82 | |
to ORM and IdiormResultSet | |||
2013-12-26 | Merge pull request #150 from herroffizier/master | Simon Holywell | |
Improving typecasting for aggregate db functions | |||
2013-12-26 | Merge branch 'lazy-setup-db' of https://github.com/falmp/idiorm into develop | Simon Holywell | |
2013-12-26 | Allow unsetting the db (ORM::set_db(null)) to make the test work again | Michel Kollenhoven | |
2013-12-12 | Issue #156 findMany() returns only the last record in a set | Simon Holywell | |
2013-11-20 | Removed premature optimization as requested | falmp | |
2013-10-02 | Changed $_db access to ensure it's always properly setup | falmp | |
Changed configure() to directly set $_config Fixed typo on comment ('mulitple' -> 'multiple') | |||
2013-09-12 | improved typecasting for aggregate db functions | m4 | |
2013-09-03 | Merge branch 'master' of https://github.com/ulrikjohansson/idiorm into develop | Simon Holywell | |
2013-09-02 | Correct docblock type hint for set_db($db) | Ulrik Johansson | |
2013-08-30 | Fix build - forgot function keyword | Simon Holywell | |
2013-08-30 | Allow `set()` and `set_expr()` calls to be chained | Erik Wiesenthal | |
2013-08-30 | Issue #133 find_many returns an associative array | Erik Wiesenthal | |
2013-08-28 | Add MS SQL `TOP` style syntax support | Simon Holywell | |
2013-08-28 | fix travis | Sam | |
2013-08-28 | logger callback | Sam | |
2013-08-28 | Added ability to use camel cased methods | [email protected] | |
2013-08-28 | Merge branch 'vicvicvic-wherealias' of https://github.com/vicvicvic/idiorm ↵ | Simon Holywell | |
into develop | |||
2013-08-28 | Merge pull request #120 from tassoevan/develop | Simon Holywell | |
Ignore result columns when calling a aggregate function | |||
2013-08-28 | Merge branch 'master' of https://github.com/mikejestes/idiorm into develop | Simon Holywell | |
2013-08-16 | Add static method `get_config` | Mike Estes | |
2013-08-14 | Uses table alias in WHERE | Victor Andrée | |
If a table alias is used for the main table, it's not valid according to the SQL standard to refer to it by it's "real name" (see http://www.postgresql.org/docs/8.2/static/queries-table-expressions.html #QUERIES-TABLE-ALIASES). This causes problems when doing JOIN with a table alias for the "main table", since previous code always used table name. Now, we check for a table alias. | |||
2013-07-29 | Reset dirty expression fields on save as well | Simon Holywell | |
2013-05-08 | Ignore result columns when calling a aggregate function | Tasso Evangelista | |
2013-04-16 | Add support for T-SQL style TOP clauses | Sebastien Bariteau | |
2013-03-20 | fixed phpdoc in get_db() | Marcin Wawrzyniak | |
phpdoc said it returns ORM, but it's PDO | |||
2013-01-30 | Simplify get_last_query() | Simon Holywell | |
2013-01-30 | Fix code style on method definitions | Simon Holywell | |
2013-01-30 | Closes issue #99 Undefined index error | Simon Holywell | |