Commits for forks / farhadi / lithium / branches / x-relationships

Commit Message Author Date
bacd...b5af Adding support for NOT operator. Ali Farhadi 2011-03-11 01:48:30 +0330
182d...4033 Adding null value (IS NULL) support Howard Lince III 2011-03-10 14:05:31 -0600
9e79...0aed Fixed a condition when the primary model was overwriting the first joined model for the sort orderarray Howard Lince III 2011-03-09 12:06:15 -0600
0daf...ddf1 Closes #118 - Adds an exception if the introspected schema does not contain the defined key(s) Howard Lince III 2011-03-08 22:14:41 -0600
013c...172f Fixed an occurance where joins exist but no fields were defined in the query only the primary model's schema was returned. Howard Lince III 2011-03-08 11:03:30 -0600
6909...f43d Implementing new field management for databases Recordset: Uses the new schema Database: updated schema and field management with regards to relationships DatabaseTest: updated tests to work with the latest relationship API Howard Lince III 2011-03-07 08:58:07 -0600
9259...d774 Adding initial schema caching implementation bootstrap/cache.php: cache filter bootstrap.php: placing caching below connections so connections can be initialized mysql/sqlite3 adapters: adding a catch and return if the fields param is set (loaded via cache) Howard Lince III 2011-03-06 14:08:30 -0600
203a...52e9 Fields for models (joined or base) can now be defined by ModelAlias.*. This makes joining a model together allow you to limit some fields while selecting all from another table. Howard Lince III 2011-03-06 06:36:35 -0600
b0d8...49d3 ModelTest: Refactored relationship introspection to fall in line with latest developments MockSource: Replaced the relationship method with the updated approach from Database.php Howard Lince III 2011-03-04 22:03:02 -0600
1abb...b9c7 Closes #279. RecordSet offsetGet handles results without their keys _populate assigns keys for results without keys based on index size RecordSetTest added tests for results with no key/indexes MockModel return now returns null if the key index isn't available. Howard Lince III 2011-03-04 10:06:21 -0600
59c8...fc50 RecordSet Added Prev fucntionality closes #259 Thanks Daschl Moved values around so they're accessible to premature termination Added a condition so that if a query object isn't available, data is mapped and returned Added object check for _query on _columnMap RecordSetTest Added an additional test for prev/first/current/next functionality - Thanks Daschl MockResult Added a constructor method to fake a resource, this falls in line with newer result functionality MockModel $values->$key was triggering on arrays causing it to improperly fetch the key, it now does an object check Howard Lince III 2011-03-04 06:12:11 -0600
6308...9319 Implementing `\data\source\Database::group()`, and refactoring group key formatting in `\data\model\Query`. Nate Abele 2011-03-03 20:24:42 -0500
140d...e184 Stripping out more dead and refactored code. Nate Abele 2011-03-03 20:23:39 -0500
0185...eb81 Refactoring and removing old relationship code in `\data\entity\Document` and `\data\entity\Record` that is no longer used. Nate Abele 2011-03-03 14:20:22 -0500
9d11...b2b3 Implementing abstract method `_prev()` in `MockResult`. Nate Abele 2011-03-03 12:35:24 -0500
3a67...5948 Query: Added alias so that models are properly joined. (nate) Database: 1:modelName resolves to an alias if it exists (used for relationships) 2: schema now returns mappings for fields that are sub-arrays with a key pointing to their relationship (or master database) see below 3: fields now accept arrays mapped to their models so that limiting fields can be done in such a fashion 'fields' => array('ModelName' => array('id', 'name'), 'ModelTwo' => array('text')); FieldsTest: 1:Removed the Mock model class within the file 2: Fixed tests 3: Added tests for new relationships & syntax for fields Added MockCompany & MockEmployees files to mocks/data These exist alongside Companies and Employees to help test the dynamics of the joins using different class, table, and alias names. Howard Lince III 2011-03-03 02:21:12 -0600
1247...1fd2 Fixed column mapping for queries with no joins. Howard Lince III 2011-03-02 22:25:11 -0600
9e0e...0c91 Recordset - _columnMap was returning relationships that weren't running - they are now stripped Query - 1:_associate now runs against the array that is 'with', previously it would iterate through the data in foreach, when it can already do that in the method 2: _associate, removed unused variables 3: Fixed errors due to referencing the wrong variable (primarily $query when it should have been $this) 4: instantiated a new query object for hasMany relations to grab the ID count and run a datasource->read against it 5: mapping $ids->data(); so that array_map doesn't invoke it every call 6: removed query remapping (fields, group etc) as it was no longer necessary because of the $ids instantiated query object Database::read $defaults has two 'returns', one with a newline in it, removed the improper one and fixed the newline Howard Lince III 2011-03-02 11:33:26 -0600
f357...dcff Data in `\data\Entity` now shows up above related data in calls to `data()`. Nate Abele 2011-03-02 10:26:50 -0500
114b...a89d `RecordSet`s now iterate properly. Implemented `Result::prev()` so that result sets could be iterated backwards. Nate Abele 2011-03-01 17:26:50 -0500
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |