1
0
mirror of synced 2025-01-31 12:32:59 +03:00

133 Commits

Author SHA1 Message Date
romanb
cfc7d4e423 Refactoring. Started to introduced a clear separation between column names and field names (aka column aliases).\nDoctrine_Connection, DQL Parser classes/methods map field names => column names.\nDoctrine_Hydrate maps column names => field names during hydration.\nColumn names are only stored in Doctrine_Table:: and Doctrine_Table::.\nRelations use column names in 'local'/'foreign'.\nWhen using field names (column aliases) you need to use the column names in 'local'/'foreign' when setting up a relation (hasOne/hasMany), not the field names.\n\n In other words column names are only used to communicate with the database. field names are used everywhere else. the casing of field names does not matter. column names are forced to lower case for portability. If you dont use field names (column aliases) your column names are your field names (and therefore all lowercase). 2007-11-18 16:06:37 +00:00
meus
53b05c1d4a added tests to get complete coverage of Transaction, RawSQL, AuditLog and Query/Having. Related refactorings. Added some getters to be able to test. Also added coverage report for these changes 2007-10-29 19:50:16 +00:00
ppetermann
c610ba0ab2 corrected creation of Doctrine_Event object
to prevent unexpected behaviour during usage 
of preHydrate/postHydrate hooks.
2007-10-24 13:44:58 +00:00
zYne
a01ed0641f fast identifier search for Doctrine_Hydrate, now the hydration should run in O(1) instead of O(n) 2007-10-22 16:38:03 +00:00
romanb
6ed2e63d88 added hydration mode HYDRATE_NONE 2007-10-22 16:32:07 +00:00
romanb
7d1e03901a cleaning up draft/ 2007-10-21 09:00:40 +00:00
Jonathan.Wage
27b369a5f3 Mass search and replace for coding standards changes, doc block formatting, and code spacing. 2007-10-21 06:23:59 +00:00
zYne
ec292991ce huge speed improvement for hydration hooks 2007-10-13 19:30:45 +00:00
zYne
52346aa6c5 moved hydration listeners to record listener 2007-10-07 22:43:04 +00:00
zYne
43811d2cc6 updated all the necessary classes to use injectable 2007-10-07 20:58:08 +00:00
zYne
a20ceff363 tests and implementation for hydrate hooks 2007-10-05 22:31:02 +00:00
Jonathan.Wage
0a6f216efa Lots of formatting changes, cleanup, doc block changes. 2007-10-03 21:43:22 +00:00
ppetermann
8143d39788 fixed bug in Cache, made Array.php compliant to its/the interfaces documentation (returning false instead of null when nothing found) and changed if statement in Hydrate to react on false, not on null too 2007-09-28 15:55:56 +00:00
zYne
e45ae7d082 2007-09-06 20:52:16 +00:00
mahono
814223bd39 * unified and simplified Hydrate->fetchOne() as well as Table->find()
* both always return reliable false if result is empty
2007-09-06 13:18:46 +00:00
mahono
744666ab95 fixed issue with fetchOne() - a break was missing 2007-09-06 12:59:45 +00:00
romanb
a478dfa4fd removed hydration constants from doctrine_hydrate 2007-09-05 16:05:49 +00:00
meus
f3a377a794 replace tabs with 4 spaces. and fix other coding style related stuff 2007-09-03 14:57:18 +00:00
zYne
e37ae45820 2007-09-02 11:29:14 +00:00
romanb
af2a83484f refactored parameter stacking (Fixes #442). 2007-09-02 09:28:38 +00:00
zYne
cb50a932fc MAP keyword support ! 2007-09-01 22:22:54 +00:00
romanb
edb1b251d6 Applied the patch from Jackbravo (ticket #441) 2007-09-01 10:41:46 +00:00
romanb
8aa8c54fb3 Small changes to the recent fix from jonwage 2007-08-14 18:28:35 +00:00
Jonathan.Wage
f123a7cdcd Added extra logic to getRootAlias() so it only calles getSql() if _aliasMap is not present already 2007-08-14 18:25:06 +00:00
Jonathan.Wage
b9a3e0cd20 Added call to ->getSql() back to ensure parsing has happened so we can determine the root alias. 2007-08-14 18:11:06 +00:00
Jonathan.Wage
91be68810c Removed unecessary change to Hydrate.php 2007-08-14 17:01:06 +00:00
Jonathan.Wage
7f4abdf292 Added copy() method to Query.php and made NestedSet.php use it because native clone() does not work. Also Added ->getSql() to getRootAlias() so that _aliasMap is present after the parsing. 2007-08-14 16:37:48 +00:00
zYne
46154c5682 fixes #418 2007-08-13 21:51:23 +00:00
mahono
c662f4d99f * added new fetchOne() method for convenience
* some whitespace cleanups
2007-07-27 15:58:37 +00:00
zYne
59be22b329 2007-07-16 19:19:29 +00:00
zYne
d49c6cabeb 2007-07-13 21:51:03 +00:00
romanb
532d3da4f1 Bugfix for hydration. (zyne, please have a look at the diff).
Improvements and enhancements to the NestedSet (not BC! please have a look at draft/nestedset_changes.tree).
Added a model that was missing in the repos (model/BlogTag).
Updated a testcase.
2007-07-08 12:57:52 +00:00
romanb
abb7773666 Fixed wrong constant. 2007-07-07 08:35:26 +00:00
zYne
56768b613f fixed identifier quoting 2007-07-06 20:55:15 +00:00
zYne
f5277b5ff5 added fetchArray() 2007-07-06 13:10:54 +00:00
zYne
615dcdb84e 2007-07-05 20:03:38 +00:00
romanb
42ef7176ae Introduced setHydrationMode() and new hydration constants. 2007-07-01 13:46:34 +00:00
zYne
9703f18ca8 2007-06-29 12:45:26 +00:00
zYne
0624cbd867 2007-06-29 10:18:05 +00:00
zYne
5b2c57af1f 2007-06-28 21:43:31 +00:00
zYne
a6139bb381 2007-06-27 17:41:02 +00:00
zYne
612793d9cb fixes #359 2007-06-25 20:08:16 +00:00
subzero2000
dea4968a23 Completes deprecation of Doctrine_Db. Fixes #362. 2007-06-25 17:48:44 +00:00
zYne
401c3fe9b7 2007-06-24 21:50:19 +00:00
gnat
2a7037cd31 uninitialized/unknown variables 2007-06-22 17:38:08 +00:00
zYne
ab530652bb added getRoot 2007-06-18 23:42:30 +00:00
zYne
34a54f52f8 2007-06-13 11:02:30 +00:00
zYne
a00c6061ab One-to-one relation fetching fixed 2007-06-07 17:04:56 +00:00
zYne
86c5a659ed 2007-06-06 00:02:50 +00:00
zYne
c697f09f32 2007-06-05 23:35:11 +00:00