romanb
205c50ea39
commented out a test line
2007-11-21 11:58:39 +00:00
romanb
eeb7350f6c
commented out a test line
2007-11-21 11:57:23 +00:00
romanb
a4a1a3f577
Started refactoring of the default hydrator, including some minor speed tweaks.
2007-11-21 11:55:05 +00:00
romanb
156cfd4a27
Introduced a separation of the 2 concerns: 1) Query construction 2) Result hydration.
...
Makes it easier to see the dependencies between these two concerns, cache the results of the query parsing process later on, implement & use alternative hydrators to experiment with different algorithms etc. etc.
Other small refactorings.
2007-11-20 14:26:42 +00:00
romanb
d645b1659c
More refactorings
2007-11-19 17:55:23 +00:00
romanb
ba9e4676fa
2007-11-19 10:00:44 +00:00
meus
d5cc06e7b8
some small refactorings. adding docblocks. creating guard clauses. refactor our some code into methods. no aditional test failures so it looks ok. also added some @todo comments
2007-11-18 20:37:44 +00:00
zYne
7af31c0c51
added getWords()
2007-11-18 17:44:47 +00:00
jepso
309c2936f7
reversed the order of search results
2007-11-18 17:44:08 +00:00
romanb
2a3b6d23b6
Removed some redundant code
2007-11-18 17:28:38 +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
meus
95792cdb17
fixes #596 . Added suggested patch
2007-11-18 12:37:46 +00:00
Jonathan.Wage
2c24b00385
Fixed issue with foreign constraint errors and saving order.
2007-11-16 22:27:28 +00:00
Jonathan.Wage
cb2d131364
Fixed so packages folder is not created unless it is needed/used.
2007-11-15 23:26:29 +00:00
Jonathan.Wage
85ef90fd02
Fixed connection binding so it is only put in the base class.
2007-11-15 23:22:18 +00:00
Jonathan.Wage
6db25011a7
Added docs and enhanced fromArray()
2007-11-15 22:45:09 +00:00
Jonathan.Wage
91cb642d7f
Moved loadTemplate() and actAs() generating to the setUp() method
2007-11-15 22:07:58 +00:00
Jonathan.Wage
04f74dc089
Initial entry of Doctrine_Log(ported from Zend_log)
2007-11-15 21:02:17 +00:00
Jonathan.Wage
e8087eb53f
Fixed issue with create() and the array of passed data
2007-11-15 21:01:19 +00:00
Jonathan.Wage
f11e95497c
Fixed issue with data dumping. Added exception throwing when you use data key that does not exist.
2007-11-15 19:46:17 +00:00
Jonathan.Wage
15bf4d70e0
Fixed issue with specifying directory as schema
2007-11-15 19:43:49 +00:00
Jonathan.Wage
5c6e8f8eb9
New coverage for parser, yaml schema parsing, a few fixes.
2007-11-15 05:16:31 +00:00
zYne
ff892b17c3
fixed enum parameter conversion in count()
2007-11-14 21:57:05 +00:00
zYne
ca736ec75a
added toArray()
2007-11-14 21:06:30 +00:00
zYne
b2c275583e
2007-11-14 20:43:20 +00:00
ppetermann
d862b013d0
making Doctrine::dump() indent arrays
2007-11-14 13:13:23 +00:00
Jonathan.Wage
94007b0a74
Fixes #471
2007-11-14 02:29:05 +00:00
Jonathan.Wage
32c6288179
Fixes #600
2007-11-14 01:57:39 +00:00
zYne
43c8eba2c7
2007-11-13 23:08:12 +00:00
zYne
8e1f157882
nested plugin functionality added
2007-11-13 22:28:37 +00:00
zYne
edfd9f6506
2007-11-13 22:05:12 +00:00
adrive
68d12596ce
Quoted inheritance type value to be able to use string values as keyValues
2007-11-13 16:33:17 +00:00
romanb
187c194bbd
Fixed an issue with the NestedSet where the baseAlias was not reset properly under some circumstances.
2007-11-13 15:52:45 +00:00
zYne
a4795d6300
added hasImpl()
2007-11-12 18:08:20 +00:00
Jonathan.Wage
ed383556ba
Merged r3136:3137
2007-11-11 00:51:13 +00:00
Jonathan.Wage
b889f427c3
Merged r3134:3135 ( fixes #582 )
2007-11-10 22:00:21 +00:00
Jonathan.Wage
e53a659c6e
Merged r3132:3133 fixed #591
2007-11-10 21:39:36 +00:00
Jonathan.Wage
060784adfb
Merge r3127:3129 ( fixes #522 )
2007-11-10 20:11:17 +00:00
Jonathan.Wage
b1c4c5f53f
Merged r3122:r3126
2007-11-10 19:54:34 +00:00
Jonathan.Wage
ec1ec99446
Merge r3121 ( fixed #573 )
2007-11-10 19:40:31 +00:00
zYne
071d5425bc
fixes #580
2007-11-10 15:46:01 +00:00
zYne
bd31958035
drafting the initial CTI support
2007-11-10 13:21:40 +00:00
zYne
8f11427595
added Doctrine_Connection::delete() method (needed as a convenience method as well as for the upcoming CTI support)
2007-11-10 10:37:10 +00:00
zYne
a8d9830dda
added update() method, needed for various things but especially for the CTI implementation
2007-11-10 00:57:13 +00:00
Jonathan.Wage
84fb1ecdc4
Fix array_merge so that schemas that are loaded after are merged in to the existing array of schemas.
2007-11-08 23:49:01 +00:00
zYne
5bb4493864
Drafting the initial CTI support, only works for simple inserts now
2007-11-08 23:03:28 +00:00
dbrewer
3f3103a195
Fixed #587 : added 'removeRecord()' method to Doctrine_Table, which is
...
called in Doctrine_Connection_UnitOfWork->delete().
2007-11-08 22:35:55 +00:00
phuson
175d3307c2
fixed ticket #571
2007-11-08 21:02:56 +00:00
Jonathan.Wage
ee9e79d09e
Fix schema merging and fixed issue with fixtures saving.
2007-11-08 20:59:38 +00:00
wolfpakz
c50b2bc375
- Fixed PHP notice in unserialize() caused by $keyColumn not being initialized.
2007-11-08 20:52:49 +00:00
Jonathan.Wage
769fd478ad
-
2007-11-08 19:01:22 +00:00
Jonathan.Wage
0038138095
Rewrote data loading to support I18n data, nested set data, and better relationship defining for fixtures. Also fixes ticket:528
2007-11-08 18:59:48 +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
Jonathan.Wage
0003c233d4
Fix to fromArray()
2007-11-08 18:53:30 +00:00
Jonathan.Wage
563377cc39
Fix for missing sql when creating tables for model with templates that result in addition tables
2007-11-08 18:52:08 +00:00
Jonathan.Wage
e33130b80e
Fix for coding standards.
2007-11-08 18:50:20 +00:00
samw3
87d58d9964
fixed processRenamedColumns() to work with mysql migrations
2007-11-08 17:10:08 +00:00
samw3
d0d026af05
ugh.. forgot some debug code.
2007-11-08 14:01:03 +00:00
samw3
85299543a3
changed getIntegerDeclaration() to handle $field['default']==NULL condition
2007-11-08 13:58:56 +00:00
Jonathan.Wage
93e1945144
Added trim to package path.
2007-11-08 00:29:15 +00:00
romanb
0ad03d6e2f
Fixed #577
2007-11-07 15:38:20 +00:00
samw3
f6a0aeb5d7
initialized $columns in listTableColumns. it threw an undefined variable error if the table was missing or had no columns defined.
2007-11-07 04:15:45 +00:00
Jonathan.Wage
a476c62efe
Cleaned up some stuff with schema generation and removed name: key from column definition.
2007-11-07 01:57:01 +00:00
Jonathan.Wage
3b898ca983
Added getTableName() and setTableName()
2007-11-07 01:41:50 +00:00
nightfreak
89ce4a28ec
=added the missing getter for the Doctrine_Relation object
2007-11-05 18:05:17 +00:00
meus
ea803566b6
fix dsn so that sqlite:///full/unix/path/test.db and sqlite://c:/full/windows/path/test.db works
2007-11-03 20:34:19 +00:00
zYne
1945b0d7a1
fixes #562
2007-11-03 15:47:24 +00:00
phuson
c6f53114a3
Fixed Ticket #561 . Typo.
2007-11-02 16:59:20 +00:00
meus
79e52571aa
added a convenience method and new coverage stuff
2007-11-02 16:07:11 +00:00
Jonathan.Wage
d099c2e357
Changes extenstion to .php instead of .class.php to be consistant with all of Doctrine.
2007-11-01 23:54:27 +00:00
Jonathan.Wage
6f07c2b100
Fixes to options for builder.
2007-11-01 23:45:33 +00:00
zYne
53413e53a0
2007-11-01 23:03:32 +00:00
zYne
e5f76c44bb
2007-11-01 22:58:10 +00:00
zYne
56432118c9
added getParams()
2007-11-01 22:55:49 +00:00
zYne
01e41f3d27
added possibility for setting user-defined params
2007-11-01 22:52:40 +00:00
Jonathan.Wage
0a2ecb6032
Class renaming.
2007-11-01 22:26:10 +00:00
Jonathan.Wage
8bfbd6a7c7
Clean up, initial entry of root txt files, fixed a few broken unit tests. New documentation.
2007-11-01 19:45:36 +00:00
Jonathan.Wage
146098c3d6
moved around and initial entry of sluggable code.
2007-11-01 15:15:57 +00:00
Jonathan.Wage
7a43ae4091
Initial entry of sluggable template.
2007-11-01 14:47:23 +00:00
Jonathan.Wage
832a8e5595
Refactored code to less lines.
2007-11-01 14:46:11 +00:00
zYne
39b8a3e3e2
2007-10-30 19:19:53 +00:00
zYne
1d6020c454
fixes #533 , using DQL identifier aliases before column names is now optional when selecting from single component
2007-10-30 19:10:18 +00:00
gnat
0695a6ab92
$this->parent doesn't exist
2007-10-30 17:51:33 +00:00
romanb
dc4be22bfe
Added missing attribute check to Doctrine_Configurable. Fixes #545 .
2007-10-30 16:08:35 +00:00
romanb
dfd15a6068
Introduced ATTR_TBLNAME_FORMAT. Closes #257
2007-10-30 13:30:50 +00:00
zYne
b0c7dce47f
fixed record state handling with aggregate values
2007-10-29 23:34:10 +00:00
zYne
486375f844
2007-10-29 22:57:32 +00:00
meus
755316c3fc
added tesst for Tokenizer and Search to get them under full coverage. relatex refactorings and coverage reports
2007-10-29 20:25:38 +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
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
zYne
dc5e0cee32
fixes #515 , correlated subqueries with IN operator
2007-10-29 18:04:22 +00:00
zYne
991f456fa4
fixes #514 , literal value as the first operand for IN
2007-10-29 17:54:40 +00:00
pookey
c6facf9ea0
reverting previuos commit
2007-10-29 14:36:21 +00:00
pookey
ab6a7c9385
adding docs for Query::reset() method
2007-10-29 14:30:06 +00:00
pookey
f2eb153723
replacing tabs with spaces
2007-10-29 12:22:53 +00:00
phuson
ff7aac8b30
New fix for the check for duplicates between explicitly declared custom relations and autogenerated relations.
2007-10-29 05:47:50 +00:00
phuson
53eb2ea087
revert change because it was breaking something else...needs to think of another way to do this.
2007-10-29 01:07:14 +00:00
phuson
e7f64afb24
Check for duplicates between custom alias relations and auto-generated relations.
2007-10-27 11:09:13 +00:00
ppetermann
de220fa43f
found a few bugs when i wanted to use Doctrine_Import_Mysql::listTableConstraints()
...
fixed code so those problems wont occure. However the method still not works as intended,
more information see mail at doctrine-dev mailinglist.
Fixed same Problems in other drivers aswell.
2007-10-26 14:56:03 +00:00