1
0
mirror of synced 2024-12-13 22:56:04 +03:00
Commit Graph

239 Commits

Author SHA1 Message Date
guilhermeblanco
65442c7488 Added free( = false) support in Doctrine_Record and Doctrine_Collection (trunk) 2008-02-29 19:33:31 +00:00
romanb
072008b65d moved managed record/entity handling to the UnitOfWork. identity maps are the next. started to remove obsolete table stuff. 2008-02-28 15:30:55 +00:00
romanb
85cb20f6dd made sure every caller of getIdentifier can handle an array. getIdentifier now always returns an array. 2008-02-24 20:31:49 +00:00
romanb
edcc8be207 some smaller refactorings. started to replace the term 'template' with 'behavior'. 2008-02-24 16:54:02 +00:00
romanb
c1c3f48960 validator refactorings and others 2008-02-23 22:04:39 +00:00
jwage
514e17ea70 Changed all references from phpdoctrine.com to phpdoctrine.org 2008-02-22 18:11:35 +00:00
romanb
eb02b4d002 started refactoring to final mapper structure for 1.0. different mapping strategies are factored out as separate strategy classes instead of inheritance. 2008-02-20 20:54:20 +00:00
meus
b040bbe35d Added tests for Doctrine_Access. It uses annotations for exceptions and to mark functions as tests. Also changed some logic in access and implementing classes to make the abstraction a little bit more solid 2008-02-14 20:20:35 +00:00
romanb
ec404b46c7 merged 3708 (Fixed #776) from 0.10 branch to trunk. 2008-02-07 22:27:29 +00:00
romanb
dad3137528 cleanups 2008-02-07 22:21:18 +00:00
romanb
56407f785a Merged r3518:r3700 from branch to trunk. Branch to be deleted, soon. Development continues in trunk. 2008-02-03 21:29:57 +00:00
pookey
7b453f1ab1 improved exception message 2008-01-25 23:13:04 +00:00
jwage
02c57f5977 fixes #688 2008-01-23 08:04:54 +00:00
jwage
c8c859baec fixes #696 function was named synchronizeWithArray but i renamed it to synchronizeFromArray because it makes more sense because all the other mades user the term "from" 2008-01-23 00:54:58 +00:00
jwage
d47f4ddab4 Changed all references to http://www.phpdoctrine.com/net to http://www.phpdoctrine.org 2008-01-22 22:52:53 +00:00
dbrewer
4b95d0504c Merged r3550 from 0.9 branch to trunk. 2008-01-19 02:35:39 +00:00
guilhermeblanco
af32f80176 Added a fix in toArray method to prevent mapped Doctrine_Record values to be displayed fully 2008-01-17 13:26:31 +00:00
romanb
71d1150e3f Second merge from experimental branch to trunk. 2008-01-12 19:49:11 +00:00
romanb
62860d5191 fixed joincondition tests. 2008-01-11 13:53:30 +00:00
romanb
d9112ad1d7 Merged current state of my experimental branch back to trunk. 2008-01-05 19:55:56 +00:00
romanb
344ab02d95 reverting the reorganization done in 3455-3456 in order to make merging my experimental branch to trunk easier. 2008-01-05 19:14:35 +00:00
Jonathan.Wage
44820ec14a Preparation for new organization of code in to sub packages. Changed autoload() to work with new structure. 2008-01-05 07:39:25 +00:00
romanb
b994c1a6f9 Fixed #697. 2007-12-28 11:51:48 +00:00
jackbravo
ab8819ca66 Related to bug #662 2007-12-11 18:25:34 +00:00
romanb
2717408be8 Fixed #662 2007-12-11 15:25:23 +00:00
wernerm
094dab1d4f Changed the link() method's use of getLocal() and getForeign() to getLocalFieldName() and getForeignFieldName(). 2007-12-11 11:31:13 +00:00
wernerm
c655b6023c Added link() functionality to create links between related records. It basically works in the opposite way as unlink(). 2007-12-11 11:10:27 +00:00
jackbravo
75ccd8cd43 Change if for else if on synchronizeWithArray 2007-12-09 17:46:28 +00:00
jackbravo
78195944be Added synchronizeWithArray method and unset functionality for relations
The unset functionality is not working for foreignKey relations
2007-12-09 01:56:53 +00:00
romanb
fc310cf36c Fixed #626. Commented out plugin tests due to a fatal error. 2007-12-01 11:18:43 +00:00
jackbravo
a73a73da66 Fix tickets #583 and #576 2007-12-01 01:21:55 +00:00
jackbravo
338bd78e66 Added a description to the Doctrine_Record::cleanData() method 2007-11-30 23:49:46 +00:00
jackbravo
b329ae870b Added a $deep argument to refresh
The default is set to false because fetching the relations deletes
previously fetched relations =P. This is, if you fetched an aggregated
value (SUM, COUNT), it wont be refreshed, it will be overwritten by the
actual related values.
2007-11-28 19:35:44 +00:00
Jonathan.Wage
542f9b0d72 Further model loading refactoring and refactored merge() in Doctrine_Record 2007-11-27 18:23:13 +00:00
Jonathan.Wage
562a48769c fixes #568 2007-11-27 03:36:40 +00:00
jackbravo
a7b86faadf Added mergeDeep method to Doctrine_Record.
Be carefull when using it as it loads related records.
But can be really convenient, specially when loading data from the
_GET and _POST variables (possibly from a form)
2007-11-26 22:52:36 +00:00
romanb
d645b1659c More refactorings 2007-11-19 17:55:23 +00:00
romanb
ba9e4676fa 2007-11-19 10:00:44 +00:00
romanb
82432246b9 Doctrine_Migration::setTableName now takes the ATTR_TBLNAME_FORMAT into account 2007-11-18 16:42:33 +00:00
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
zYne
bd31958035 drafting the initial CTI support 2007-11-10 13:21:40 +00:00
Jonathan.Wage
37898ac06a Fix to toArray() when you use toArray(true) on a record that has not been saved yet but has references 2007-11-08 18:54:55 +00:00
romanb
0ad03d6e2f Fixed #577 2007-11-07 15:38:20 +00:00
zYne
b0c7dce47f fixed record state handling with aggregate values 2007-10-29 23:34:10 +00:00
bschussek
520f4a1056 fixed: old mapped values were deleted when data was hydrated into an existing record (lazy-loading) 2007-10-29 19:26:22 +00:00
Jonathan.Wage
1989b099be Fixes [ticket:512] 2007-10-25 14:21:25 +00:00
romanb
198b34c0b4 fix to assignDefaultValues. should fix #468 2007-10-21 20:12:36 +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
Jonathan.Wage
4f0234fff4 Removed propel style accessors. 2007-10-09 20:51:42 +00:00
Jonathan.Wage
8598411b02 Added support for Propel style getters/setters to __call() 2007-10-09 20:08:23 +00:00