1
0
mirror of synced 2024-12-15 07:36:03 +03:00
Commit Graph

226 Commits

Author SHA1 Message Date
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
adamthehutt
6b26a7b813 Fix for ticket #457, moves Doctrine_Record::find/One() to Doctrine_Table::execute/One()
Ticket: 457
2007-10-08 16:39:12 +00:00
zYne
7391081d81 fixed fatal method delegation bug 2007-10-07 23:36:28 +00:00
zYne
52346aa6c5 moved hydration listeners to record listener 2007-10-07 22:43:04 +00:00
Jonathan.Wage
0a6f216efa Lots of formatting changes, cleanup, doc block changes. 2007-10-03 21:43:22 +00:00
Jonathan.Wage
12cc664bf1 Added exportTo() and importFrom() to Collection and Record. 2007-09-26 22:36:32 +00:00
Jonathan.Wage
8c8d8187a5 Tweaks to everything, refactoring hydrating. 2007-09-25 21:39:38 +00:00
Jonathan.Wage
e9ba4504bf Fixes for Doctrine Resource 2007-09-24 18:22:52 +00:00
Jonathan.Wage
b98130db1e Fixes for doctrine resource. 2007-09-22 01:32:48 +00:00
Jonathan.Wage
5aa73029cf Added fromArray() methods. 2007-09-21 21:40:54 +00:00
zYne
bfa3ef5649 2007-09-21 13:48:31 +00:00
zYne
f3488d17a0 2007-09-21 13:13:43 +00:00
zYne
be5eb98ebf 2007-09-20 20:21:08 +00:00
zYne
2f70b203e6 2007-09-20 20:15:34 +00:00