summaryrefslogtreecommitdiff
path: root/idiorm.php
AgeCommit message (Collapse)Author
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
2010-10-07_build_update method now uses new _create_placeholders methodJamie Matthews
2010-10-07Add where_in and where_not_in methods, tests and docsJamie Matthews
2010-10-07Refactor and simplify WHERE condition buildingJamie Matthews
2010-10-06Change variable name _where -> _where_conditions for clarityJamie Matthews
2010-09-20All identifiers (table names, column names) are now quoted with backticksJamie Matthews
2010-09-20Refactor and split up save methodJamie Matthews
2010-09-20Fix typoJamie Matthews
2010-09-20Simplify _run method, move logic for the different types of query into the ↵Jamie Matthews
separate find_one, find_many, count methods
2010-09-20Refactor and clean up the _build_select method. Split each part of the query ↵Jamie Matthews
into a separate method call
2010-09-19Make all private methods and properties protected, change internalJamie Matthews
naming scheme. For better extensibility, all "private" members are now protected, enabling them to be called from subclasses. We are all consenting adults - if you want to poke around in Idiorm's internals, be my guest. Additionally, all protected members and methods now start with an underscore to make them more visible in the code. This approach is based on Kohana's public/private and naming policies. Closes #4.
2010-09-16Add where_not_like method, docs and testJamie Matthews
2010-09-14Remove version info from source and README as this is misleading. Tags are ↵jamie
used to record versions
2010-09-14Small changes to commentsJamie Matthews
2010-09-14BACKWARDS INCOMPATIBLE CHANGE: rename where_equals method to where_equal for ↵Jamie Matthews
consistency
2010-09-14Change order of arguments to add_where methodJamie Matthews
2010-09-14Add code, tests and docs for inequality operators: where_gt, where_lt, ↵Jamie Matthews
where_gte, where_lte
2010-09-14Remove some pointless class constantsJamie Matthews
2010-07-05Version 0.5Jamie Matthews
2010-07-05Add 'driver_options' setting to allow driver-specific connection options to ↵Jamie Matthews
be passed through to the PDO constructor. Closes #2
2010-07-05Clean up setup_db functionJamie Matthews
2010-06-08Fix default connection string for in-memory SQLite database. Closes #1Jamie Matthews
2010-04-28Refactor WHERE clause building loopJamie Matthews
2010-04-28Add GitHub URL to comments in main class fileJamie Matthews
2010-04-17Cleaned up and refactored internals of adding WHERE clausesJamie Matthews
2010-04-17Small refactoring of delete method to clean upJamie Matthews
2010-04-12Version 0.4Jamie Matthews
2010-04-12Added support for COUNT queriesJamie Matthews
2010-03-21Fixed small bug when new objects are created, saved, edited and then saved ↵Jamie Matthews
again.
2010-02-26Version 0.3Jamie Matthews
2010-02-26Fixed multiple bugs in query buildingJamie Matthews
* ORDER BY, LIMIT and OFFSET parameters cannot be bound to the query as the database surrounds them with quotes, formining invalid SQL. They are now simply concatenated to the SQL string. The documentation has been updated to mark these as "unsafe" and not suitable for use with unfiltered user input. * ORDER BY should come before LIMIT and OFFSET.
2010-02-25Allow passing username and password to PDO constructor for eg. MySQL adapterJamie Matthews