|
d99d...46fa |
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 |
|
fe04...c01c |
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 |
|
8843...198a |
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 |
|
3d44...5441 |
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 |
|
06cd...dad4 |
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 |
|
b940...645d |
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 |
|
2dc7...5d06 |
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 |
|
b08f...e5b8 |
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 |
|
6856...1110 |
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 |
|
994f...5c25 |
Implementing `\data\source\Database::group()`, and refactoring group key formatting in `\data\model\Query`. |
Nate Abele |
2011-03-03 20:24:42 -0500 |
|
a39b...a621 |
Stripping out more dead and refactored code. |
Nate Abele |
2011-03-03 20:23:39 -0500 |
|
a1b9...0511 |
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 |
|
e096...88e8 |
Implementing abstract method `_prev()` in `MockResult`. |
Nate Abele |
2011-03-03 12:35:24 -0500 |
|
4ff5...c8af |
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 |
|
d482...2cdb |
Fixed column mapping for queries with no joins. |
Howard Lince III |
2011-03-02 22:25:11 -0600 |
|
be95...92ba |
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 |
|
6857...9e48 |
Data in `\data\Entity` now shows up above related data in calls to `data()`. |
Nate Abele |
2011-03-02 10:26:50 -0500 |
|
eb56...7f65 |
`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 |
|
83fe...a2d2 |
Relations grab all the data rows that belongs to them only |
Howard Lince III |
2011-02-28 17:22:27 -0600 |
|
4fa7...e7a9 |
Reworking Relationships |
Howard Lince III |
2011-02-28 16:01:20 -0600 |