Jonathan.Wage
2e16d60601
fixes #649
2007-12-19 23:33:31 +00:00
Jonathan.Wage
bef37c27ba
fixes #658
2007-12-19 23:02:26 +00:00
Jonathan.Wage
0e528198fb
fixes #640
2007-12-19 22:45:14 +00:00
Jonathan.Wage
d1df55e316
Refactorings for schema files and Doctrine_Record builder. More to come but got held up on some things that zYne- must fix first.
2007-12-19 22:41:11 +00:00
guilhermeblanco
132e5c969c
CHG: Changed private variable name (chunkLength to _chunkLength) in Jumping.php and Sliding.php
...
CHG: Added documentation for Doctrine_Pager and Doctrine_Pager_Range* classes
TODO: Finish pagination documentation
2007-12-19 03:07:41 +00:00
Mosh
9de41c83d1
Fixed #680 : Missing quotation of ENUM DEFAULT Statement
2007-12-18 19:40:18 +00:00
pookey
f3e9fe66a8
adding a toString method to pager layout
2007-12-18 12:00:12 +00:00
pookey
d6ec2665ec
fixing typo in exception
2007-12-18 11:54:14 +00:00
romanb
51c88e2020
Merged 3405 ( Fixed #626 ) from 1.0 branch.
2007-12-15 19:19:31 +00:00
guilhermeblanco
a95073abff
CHG: Doctrine coding standards adjustments
...
ADD: Added methods: addMaskReplacement, removeMaskReplacement and cleanMaskReplacements in Doctrine_Pager_Layout. They are responsable to make masks behavior as another masks or values on predefined situations.
2007-12-13 03:07:24 +00:00
romanb
1446447107
Fixed #673 .
2007-12-12 16:21:54 +00:00
romanb
79b79909ad
Refactored transactions. Fixed #464 .
2007-12-12 15:52:12 +00:00
romanb
467897dadb
Fixed #626 .
2007-12-12 09:54:39 +00:00
adamthehutt
13b5346a4f
Fix for #669
2007-12-11 23:03:57 +00:00
jackbravo
ab8819ca66
Related to bug #662
2007-12-11 18:25:34 +00:00
romanb
9281630ed7
Fixed #664 .
2007-12-11 15:55:45 +00:00
romanb
6a958bae47
Fixed #665 .
2007-12-11 15:46:27 +00:00
romanb
532dea0dd2
Fixed #662
2007-12-11 15:25:56 +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
zYne
efa434800c
removed parseAggregateFunction
2007-12-10 19:19:29 +00:00
zYne
3500a6fb17
added parseFunctionExpression
2007-12-10 18:59:12 +00:00
zYne
e5d43b2fcc
added parseSubquery()
2007-12-10 18:51:22 +00:00
zYne
e069f12c6c
2007-12-10 18:32:36 +00:00
pookey
f4186781db
possibly a temp fix. fix to allow postgres array datatypes work as a string
2007-12-10 13:19:29 +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
Jonathan.Wage
4275c6656f
Removed exec() call and updated docs for data fixtures.
2007-12-07 22:48:28 +00:00
wernerm
0b89c4dda2
Changed loadModels() once again. Removed loading of models based solely on model filename. Added support for different models with the same file names. All models files are required, in order to determine class names. The changes result in an overall increase in flexibility with respect to model file names.
2007-12-07 11:06:55 +00:00
dbrewer
7e0a902aba
Added test case to demonstrate that delimiters in
...
Doctrine_Query_Tokenizer::bracketExplode() were case sensitive, and
changed tokenizer to make them case insensitive.
2007-12-07 03:23:09 +00:00
romanb
af657cbe69
Introduced a new attribute ATTR_AUTOLOAD_TABLE_CLASSES that can be used to control whether Doctrine should try to autoload custom table class files when looking for them.
2007-12-06 19:02:29 +00:00
adamthehutt
2bcd41e237
Fix for ticket #650
...
Ticket: 650
2007-12-06 14:17:03 +00:00
meus
19c08a2f95
removed autoload of self
2007-12-06 11:09:00 +00:00
romanb
05ccf7098d
Improved autoload.
2007-12-05 09:50:47 +00:00
pookey
0c9c3767c2
allowing for the "interval" postgres datatype
2007-12-04 15:22:20 +00:00
romanb
a143caefe3
Fixed #626 . Reopening the ticket for further issues is fine.
2007-12-03 18:37:39 +00:00
guilhermeblanco
806e9c63e6
Fixed default definition in date* fields
2007-12-03 17:56:56 +00:00
romanb
8ed0530fbf
Fixed #626 .
2007-12-03 10:06:30 +00:00
romanb
28fba54f4a
Another hydrator speed improvement.
2007-12-02 15:04:51 +00:00
romanb
5e26473340
Fixed #636 .
2007-12-02 12:56:15 +00:00
romanb
baf77264c1
Hydrator speed improvement
2007-12-01 20:10:29 +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
Jonathan.Wage
9f20184fc4
Updated version.
2007-11-30 23:39:32 +00:00
Jonathan.Wage
e6768b4f8b
Initial entry of Geographical template.
2007-11-30 22:49:23 +00:00
Jonathan.Wage
e8bb04a66e
Reverted change. actAs() and loadTemplate() currently only work in the setTableDefinition()
2007-11-30 22:49:04 +00:00
jackbravo
deabfcbb54
Fix ticket #620 , PATCH provided by baron314159, thanks
2007-11-30 22:46:06 +00:00
Jonathan.Wage
70addc55ca
Fixes to model building so it does not generate duplicate relations.
2007-11-29 15:57:05 +00:00
wolfpakz
3aa991821b
- Fixed problem with Nested Set table definition not happening in time for exporting when NestedSet behavior is added through Doctrine_Template_NestedSet.
2007-11-29 01:39:19 +00:00
zYne
7e2669d1bd
fixes #624
2007-11-28 23:06:04 +00:00
zYne
69985832a7
2007-11-28 22:56:45 +00:00
zYne
5738fed7a6
2007-11-28 22:56:14 +00:00
zYne
f8a0eb2e25
fixes #624
2007-11-28 22:13:12 +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
wernerm
724cc2b1e7
MAde small fix to model loading that caused a warning to be raised.
2007-11-28 16:51:06 +00:00
Jonathan.Wage
f0b0100987
Code formatting.
2007-11-28 03:22:09 +00:00
wolfpakz
fc34ba6ec4
- Small fix for initialization of method parameter.
2007-11-28 02:53:37 +00:00
wolfpakz
7c0a538b11
- Corrected capitalization in casts to type string.
2007-11-28 02:48:37 +00:00
Jonathan.Wage
9eac2776ea
Consolidated a few things. Initial entry of Inflector class. Moved some methods from Doctrine base class to Doctrine_Lib and Doctrine_Inflector.
2007-11-28 02:21:42 +00:00
zYne
b6924e0f0d
2007-11-28 00:01:03 +00:00
zYne
a5f755f4ea
enhanced plugin initialization procedure
2007-11-27 23:59:18 +00:00
gnat
206002de10
allow default options to be overridden properly
2007-11-27 23:19:44 +00:00
gnat
536c4fd55a
optional fields
2007-11-27 20:16:16 +00:00
Jonathan.Wage
542f9b0d72
Further model loading refactoring and refactored merge() in Doctrine_Record
2007-11-27 18:23:13 +00:00
wolfpakz
0ac4d757c7
- Fixed typo in column declarations.
2007-11-27 16:45:52 +00:00
zYne
80bb1ed071
added getPlugins()
2007-11-27 16:08:34 +00:00
Jonathan.Wage
32392d9ad1
fixes #473
2007-11-27 03:45:30 +00:00
Jonathan.Wage
562a48769c
fixes #568
2007-11-27 03:36:40 +00:00
Jonathan.Wage
7389d82834
fixes #547
2007-11-27 02:50:56 +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
zYne
377d157a00
2007-11-26 22:27:23 +00:00
zYne
eb555668d2
2007-11-26 22:25:18 +00:00
guilhermeblanco
d411ba4233
Implemented Doctrine_Pager_Layout, providing a programatically way to generate paginator layout using Doctrine_Pager and Doctrine_Pager_Range components
2007-11-26 16:27:24 +00:00
zYne
2fef2fd1a4
2007-11-26 00:07:09 +00:00
zYne
8711b28765
fixed code formatting
2007-11-25 23:59:54 +00:00
zYne
18fc6b4aa6
fixed initialize
2007-11-25 23:57:10 +00:00
Jonathan.Wage
84a97f98ed
Fixes #618
2007-11-25 21:39:39 +00:00
zYne
391cdfab01
doc blocks added
2007-11-25 21:16:44 +00:00
zYne
2174bc99e7
enhanced the internal API of various plugins
2007-11-25 21:10:49 +00:00
Jonathan.Wage
3429b18cc9
Fixes #610
2007-11-25 20:45:33 +00:00
Jonathan.Wage
c483704a5e
Fixes #613
2007-11-25 20:36:12 +00:00
Jonathan.Wage
63815bacca
Removed. Will be replaced by native Resource connection driver.
2007-11-25 20:32:34 +00:00
Jonathan.Wage
2bd3667750
A few fixes to Migrations and formatting/code fixes.
2007-11-25 20:30:51 +00:00
zYne
4a99e766a3
changed autoinc key to autoincrement
2007-11-25 20:22:50 +00:00
guilhermeblanco
33ed595536
Implemented Doctrine_Pager_Range functionality. This classes enables a powerful way to generate page ranges (Fowler's pattern) to be used coupled with Doctrine_Pager. Already implemented 2 of the most used ranges: Doctrine_Pager_Range_Jumping and Doctrine_Pager_Range_Sliding.
2007-11-25 20:16:14 +00:00
guilhermeblanco
139720fb9f
CHG: Updated Doctrine_Pager to become coding standards compliant
2007-11-25 19:09:51 +00:00
romanb
05147fbeb6
Completed implementation of the query cache.
2007-11-25 19:07:30 +00:00
guilhermeblanco
bbfa506da8
CHG: Added Doctrine_Pager object, which provides Paginator functionalities to Doctrine.
2007-11-25 18:33:49 +00:00
romanb
352ab0de40
renamed the default hydrator. started to implement a query cache.
2007-11-25 15:57:08 +00:00
zYne
ae4b715754
enhanced plugin building procedure
2007-11-25 12:34:37 +00:00
zYne
4570b90079
fixed CTI column referencing within DQL
2007-11-25 12:02:04 +00:00
romanb
0cda367802
moved tokenizeQuery() to the Tokenizer
2007-11-24 19:08:41 +00:00
romanb
90d472eb98
prepared the tokenizer for getting a state and being a full-fledged object
2007-11-24 18:58:33 +00:00
romanb
18ae694e29
Removed test code
2007-11-24 18:13:00 +00:00
romanb
02e0aff3b9
Added missing file
2007-11-24 18:12:02 +00:00
romanb
78f5a2edcb
More refactorings. Commented out the plugin tests for now. They seem to wreak havoc with a lot of other tests (especially validator tests) and i havent found the reason yet.
2007-11-24 18:11:09 +00:00
wernerm
24a8cef0e6
Fixed getLoadedModels()
2007-11-23 00:28:58 +00:00
wernerm
54050f8c81
Fixed getLoadedModels()
2007-11-23 00:25:28 +00:00
zYne
86939d83bd
fixed removeColumn()
2007-11-22 22:02:35 +00:00
wernerm
5d3b09524c
Added isValidModelClass() static method and fixed getLoadedModels() in order to resort back to the (classical) approach of class inclusion as a fallback when record classes have different names than their file names. The fallback behaviour of getLoadedModels() is now similar to what is was before the changes introduced in rev 3002.
2007-11-22 13:40:22 +00:00
romanb
929273a0f1
More refactorings and small speed improvements on the default hydrator.
2007-11-21 14:29:59 +00:00
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