summaryrefslogtreecommitdiff
path: root/idiorm.php
AgeCommit message (Collapse)Author
2012-11-08Escape sprintf % chars in queriesKunio Murasawa
Thanks m92o
2012-08-28Minor tweaks to formatting on class and documentationDurham Hale
2012-08-28Merge remote-tracking branch 'jordanlev/configure-with-array' into developDurham Hale
2012-08-28Merge remote-tracking branch 'sandermarechal/set-array' into developDurham Hale
2012-08-28Merge remote-tracking branch 'sandermarechal/raw-query' into developDurham Hale
2011-05-15configure() function can now accept an array of settings (also updated ↵Jordan Lev
README to reflect this)
2011-03-03Rename order_raw to order_by_exprSander Marechal
2011-03-03Update multiple properties at onceSander Marechal
This change alters the `set` method so you can update multiple properties at once, by passing an associative array top `set`.
2011-03-02Allow raw queries without parametersSander Marechal
This is useful for e.g. MySQL `LOCK TABLE` or SQLite `VACUUM` commands which usually do not require parameters.
2011-03-02Add support for raw `ORDER BY` clauses.Sander Marechal
This is useful when you need to order results by something other than a column name, like the output of an SQL function.
2011-01-30Issue #12: Fix incorrect quoting of column wildcard. Thanks pewterfish.Jamie Matthews
2011-01-24Fix out-of-date comment and typo in READMEJamie Matthews
2011-01-22Add support for GROUP BY - issue #13Jamie Matthews
2011-01-22Add support for DISTINCT - issue #13Jamie Matthews
2011-01-10Guard against missing result in count methodJamie Matthews
2011-01-10Refactor and simplify count() methodJamie Matthews
This method was previously using _run directly, and was incorrectly assuming the result would contain a single associative array (row) instead of an array containing one row. Now uses find_one directly, which is much cleaner and simpler anyway.
2011-01-09Fix cache key generation bugJamie Matthews
2011-01-08Add simple query caching - issue #11Jamie Matthews
2011-01-08Refactor the way query results are fetched internally.Jamie Matthews
Previously, the _run method returned an executed PDOStatement object, which find_one and find_many then manually fetched the rows from. Now, _run does the fetching, and returns an array of rows (each as an associative array).
2011-01-08Add is_dirty method to check whether a field has modifiedJamie Matthews
2010-11-15Add __isset magic method. Fixes ↵Jamie Matthews
https://github.com/bobthecow/mustache.php/issues#issue/22
2010-11-03Add where_null and where_not_null methods. Thanks for the suggestion, artcijsgJamie Matthews
2010-11-03Parameters to where_raw method are now optionalJamie Matthews
2010-11-03Add where_not_equal method. Thanks for the suggestion, arcijsgJamie Matthews
2010-11-03Refactor and reorganise database connection initialisation code. Thanks to ↵Jamie Matthews
arcijsg and codeguy for the suggestions/bug reports
2010-11-03Quick fix of _detect_identifier_quote_character function - _setup_db must be ↵Jamie Matthews
called before this will work. Need to rethink this
2010-11-02Add sqlsrv, dblib, mssql, sybase to detect_identifier_quote_character ↵Jamie Matthews
method. See issue #6
2010-11-02Add support for specifying (and autodetecting) the character used to quote ↵Jamie Matthews
database identifiers. See issue #6
2010-11-01Add as_array method to return raw data wrapped by ORM instancesJamie Matthews
2010-10-28Merge branch 'master' of github.com:j4mie/idiormJamie Matthews
* 'master' of github.com:j4mie/idiorm: Revert to using a variable to track whether the object is new. This should provide support for manually setting IDs (eg UUIDs)
2010-10-27Add where_id_is method, docs and testJamie Matthews
2010-10-27Revert to using a variable to track whether the object is new. This should ↵jamie
provide support for manually setting IDs (eg UUIDs)
2010-10-25Fix typo in commentJamie Matthews
2010-10-25Add table_alias method to provide ability to alias the main table in SELECT ↵Jamie Matthews
queries
2010-10-25Add support for unescaped string constraintsJamie Matthews
2010-10-25Add test and fix implementation of table aliasesJamie Matthews
2010-10-25Add inner, left outer, right outer, full outer joinsJamie Matthews
2010-10-25Rename _add_join to _add_join_sourceJamie Matthews
2010-10-25Initial work on joins. Basic test, join and _add_join methodsJamie Matthews
2010-10-25Add return $this in _add_result_column to clean up select and select_exprJamie Matthews
2010-10-25Remove _update_or_insert, this is now tracked by testing whether id() ↵Jamie Matthews
returns null
2010-10-25Convert count method to use select_expr method, remove $_find_type as this ↵Jamie Matthews
is no longer needed
2010-10-25Add select and select_expr methods to provide control over result columnsJamie Matthews
2010-10-25Simplify ORDER BY buildingJamie Matthews
2010-10-22find_one method now adds LIMIT 1 to queriesJamie Matthews
2010-10-22Fix query binding in _log_query methodJamie Matthews
2010-10-22Ensure delete method calls _log_query correctlyJamie Matthews
2010-10-22Add support for logging last query and all queries executed.Jamie Matthews
2010-10-07Add use_id_column method to allow specifying the ID column to use on a ↵Jamie Matthews
per-instance basis
2010-10-07Simplify where_raw method. This method can now be used in method chains.Jamie Matthews