jackbravo
d8352d67fa
Substitute array_diff function with array_udiff to allow overriding __toString()
2007-09-10 16:16:24 +00:00
meus
a7c24a05f5
fixing codeing standard errors...
2007-09-08 12:43:25 +00:00
meus
8fbd18207b
conveience method inspect() in Doctrine_Validator_Exception. Call it with user_func and it will apply it to all ErrorStacks
2007-09-08 12:41:09 +00:00
jackbravo
3ad6e01c73
Simplified test for isComposite
2007-09-07 18:09:18 +00:00
lsmith
bbf5b62a68
- not use the integer index, instead use the actual value for non emulated enums
2007-09-07 13:27:02 +00:00
zYne
6987d11e2a
2007-09-06 21:07:24 +00:00
zYne
88f60a022b
2007-09-06 20:59:13 +00:00
zYne
d16ea7d8fc
2007-09-06 20:52:36 +00:00
zYne
e45ae7d082
2007-09-06 20:52:16 +00:00
zYne
4eac440c56
2007-09-06 20:38:22 +00:00
zYne
ec6120b955
2007-09-06 20:23:52 +00:00
zYne
eed203594e
2007-09-06 20:12:12 +00:00
zYne
26d3d3e7a4
2007-09-06 19:32:22 +00:00
mahono
e20c213ae2
refactored Table->find()
2007-09-06 14:12:40 +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
jackbravo
af14c812ce
Memory problem solved. Sqlite creating functions repeatedly.
...
Doctrine_Connection_Sqlite::connect was creating functions every time it was called even if it was allready connected.
2007-09-05 22:03:57 +00:00
romanb
a478dfa4fd
removed hydration constants from doctrine_hydrate
2007-09-05 16:05:49 +00:00
zYne
d9a5bbd61d
2007-09-05 15:03:00 +00:00
zYne
cd7f42dec2
2007-09-04 20:56:16 +00:00
zYne
d992deea1d
2007-09-04 20:49:35 +00:00
jackbravo
5ae71f676e
Throw exception on deprecated attributes
2007-09-04 16:36:12 +00:00
romanb
4a2fac7218
Fixed a bug in the nestedset implementation. When using single table inheritance all node instances need to use the same tree object. previously every subclass created it's own tree object which resulted in strange behaviour.
2007-09-04 12:52:23 +00:00
jackbravo
a7b48e4269
Use FETCH_ARRAY on Doctrine_Record::refresh() to avoid clearing object relations
2007-09-04 01:23:11 +00:00
jackbravo
c3b9837c12
Fix bug #428 , clearing object relations before adding new ones in a query
2007-09-04 01:23:02 +00:00
jackbravo
1c5162eed2
Use array_shift, since the key may not allways be 0
2007-09-03 22:29:30 +00:00
jackbravo
b4b07479e3
EXPORT_ALL constant should include bits 1 and 2, so it should be set to 3
2007-09-03 16:54:08 +00:00
jackbravo
a975c64de1
Avoid using getMethod on classes that don't have that method
2007-09-03 15:36:56 +00:00
meus
f3a377a794
replace tabs with 4 spaces. and fix other coding style related stuff
2007-09-03 14:57:18 +00:00
nightfreak
d3e4b2c912
small bugfix
2007-09-03 12:08:36 +00:00
lsmith
6f7736ade8
- trying to fix http://www.phpdoctrine.net/trac/changeset/2322/trunk/lib/Doctrine/Export.php
2007-09-03 10:41:51 +00:00
zYne
78c3ba652a
2007-09-02 22:08:02 +00:00
zYne
810b1d6623
2007-09-02 20:48:31 +00:00
zYne
a6318cbe93
deprecated validation attributes VLD, AUTO_LENGTH_VLD and AUTO_TYPE_VLD, introduced new attribute ATTR_VALIDATE
2007-09-02 20:36:58 +00:00
zYne
e73f9fe5ec
2007-09-02 20:18:41 +00:00
zYne
70ff3b261f
refactored Validator API
2007-09-02 20:00:27 +00:00
zYne
63cba02028
2007-09-02 17:34:44 +00:00
zYne
2dd52e306d
2007-09-02 17:02:16 +00:00
meus
4ff9af6df0
removed aditional ?> from lib
2007-09-02 17:00:26 +00:00
zYne
eb92f6d220
2007-09-02 16:55:24 +00:00
zYne
7127f12e2c
drafting I18n
2007-09-02 11:55:12 +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
lsmith
0fdb229020
- added support for Doctrine::ATTR_USE_NATIVE_ENUM (defaults to off, no BC break)
2007-09-02 08:53:16 +00:00
zYne
cb50a932fc
MAP keyword support !
2007-09-01 22:22:54 +00:00
romanb
3e47532e07
Notnull validator no longer checks for empty strings
2007-09-01 20:20:17 +00:00
jackbravo
9b5246368e
Added FETCH_ARRAY support for table finder methods, fixes bug #397
2007-09-01 19:44:38 +00:00
zYne
3fe5b807a1
2007-09-01 17:35:44 +00:00
zYne
07c5c92e73
deletes are no longer stacked in the end of transaction, now transactional integrity is always assured
2007-09-01 17:28:11 +00:00
zYne
07b5727c52
severe export bug fix: classes using column aggregation inheritance not properly exported
2007-09-01 16:11:58 +00:00
zYne
5d1d506a3a
added invoker catching
2007-09-01 16:04:48 +00:00
zYne
224d3fb062
2007-09-01 15:51:46 +00:00
zYne
ef127afd1e
2007-09-01 15:30:40 +00:00
romanb
edb1b251d6
Applied the patch from Jackbravo (ticket #441 )
2007-09-01 10:41:46 +00:00
Jonathan.Wage
d9e415122f
A few changes to get package generated.
2007-08-31 22:32:37 +00:00
zYne
81ed29c3ad
added <user> tag
2007-08-31 22:29:18 +00:00
zYne
2b53d3369a
2007-08-31 22:28:48 +00:00
zYne
2757d27ca1
2007-08-31 22:26:39 +00:00
Jonathan.Wage
81da7a3a01
Removed.
2007-08-31 22:23:13 +00:00
Jonathan.Wage
30d1d34eb3
Updated.
2007-08-31 22:20:38 +00:00
Jonathan.Wage
70110bb818
Moved around.
2007-08-31 22:14:35 +00:00
Jonathan.Wage
a3481e688b
Initial entry of package xml files.
2007-08-31 22:09:37 +00:00
zYne
67fc9764c3
2007-08-29 22:20:30 +00:00
zYne
04e5888a3c
fixes #429
2007-08-29 22:15:25 +00:00
zYne
ed2822938a
2007-08-29 22:13:47 +00:00
zYne
15556a35a4
fixes #433
2007-08-29 22:03:55 +00:00
zYne
4fc6efd82f
fixes #440
2007-08-29 21:57:46 +00:00
Jonathan.Wage
3eedefae50
Reverted changes for disabling foreign key sql exporting. Not needed since it can be done with attributes.
2007-08-29 21:51:49 +00:00
zYne
684ad68de2
2007-08-29 21:36:36 +00:00
jackbravo
2d08773ea7
Reverted changeset 2271, increase in memory usage too big
2007-08-29 19:07:43 +00:00
romanb
7bedb0b21d
Added Doctrine_Query::free() to make it possible to help PHPs current GC
2007-08-29 18:40:58 +00:00
jackbravo
1c24964490
Added toString method to avoid some errors
2007-08-28 19:51:06 +00:00
jackbravo
bd61271579
toArray now can return also the record relations
2007-08-28 16:45:22 +00:00
Jonathan.Wage
bf6ed870fa
Added back getTemplates() function. Somehow was removed on accident
2007-08-27 15:04:32 +00:00
Jonathan.Wage
8dfd9e5a6b
Updated Oracle.php export driver to match parent function definition
2007-08-27 14:52:38 +00:00
Jonathan.Wage
6ce7d88c0b
Added ability to turn off foreign key sql exporting for specific models
2007-08-27 14:43:52 +00:00
lukenukem
d82b58aa10
Added PostgreSQLs age() and date_part() functions.
2007-08-25 08:06:17 +00:00
jackbravo
777539fbf3
Fixed bug on columns not being quoted on INSERT statements, reported by email by Gavin Mogan
2007-08-25 00:34:25 +00:00
jackbravo
d47b8f11ec
Again... Prevent quoting two times the table name, bug report by g00fy on irc, seems like this bug could be on other drivers as well
2007-08-25 00:17:30 +00:00
jackbravo
95d443575f
Added some user functions (trim, ltrim, rtrim, sha1), the trim function prevented the tests from running
2007-08-25 00:14:14 +00:00
jackbravo
9b7c743f48
Prevent Doctrine from quoting two times table name, bug report by g00fy on irc
2007-08-24 23:03:25 +00:00
jackbravo
7fc767794e
Amend: this was not yet to be commited
2007-08-24 22:00:05 +00:00
jackbravo
17913f5860
Clearer fix for nesting level too deep bug, use in_array with strict flag (use === instead of ==)
2007-08-24 21:43:50 +00:00
jackbravo
666e2f3f8d
Nesting level too deep because using in_array, fixed
2007-08-24 19:20:06 +00:00
jackbravo
b01212e2e8
Fixed a bug when using Templates and exporting classes using inheritance
...
If you hada base Doctrine_Record class that implemented a Template and some classes
that inherited from this one using single table inheritance, the export process
failed because it tried to create several times the same table
2007-08-23 00:57:33 +00:00
gnat
25554aa0f7
fixed a problem with undefined array keys when fetching in array mode with multi level joins
2007-08-21 14:59:04 +00:00
kselli
70c94fae67
Patched the bug #423 which didn't allow user to set attributes in the construct() method.
...
Ticket: 423
2007-08-20 23:04:30 +00:00
romanb
ce90ee576a
Fixed Doctrine_Node_NestedSet::getNumberChildren()
2007-08-20 07:45:29 +00:00
zYne
003e6ad163
2007-08-17 21:24:55 +00:00
zYne
bcb31fc232
added template method call delegator
2007-08-17 21:22:03 +00:00
zYne
ed8e90b8df
2007-08-17 21:21:52 +00:00
jepso
ec6f806efe
Doctrine_Cache_Db:
...
* added tableName option
* added deleteAll and createTable methods
* fixed fetch method
* fixed a bug with expire time in save method
2007-08-17 10:49:51 +00:00
Jonathan.Wage
99ae59fd41
Changed import/export methods to importSchema() and exportSchema()
2007-08-16 22:42:35 +00:00
Jonathan.Wage
b4600960fd
Changed imprt back to import as variable names are not affected by change to php
2007-08-16 21:54:14 +00:00
nicobn
b54d56a9a2
Jaws_Schema is now abstract
2007-08-15 16:57:16 +00:00
nicobn
a062835e43
'import' is a reserved word in PHP 6. Changed all method names / properties name from import to imprt. This means the documentation will need to be changed
2007-08-15 14:49:00 +00:00
zYne
4ab524089a
2007-08-14 21:20:00 +00:00
zYne
37e6248b8a
2007-08-14 20:49:07 +00:00
zYne
f6c1560ebc
2007-08-14 20:44:48 +00:00
zYne
30521a7020
2007-08-14 20:30:33 +00:00
Jonathan.Wage
1b8e9ea091
Removed getState() method and changed all references to getState() to state()
2007-08-14 20:23:54 +00:00
zYne
5a976de3f4
fixes #335
2007-08-14 20:23:02 +00:00
zYne
201c6b8194
fixes #419
2007-08-14 20:16:31 +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
lsmith
39e024c166
- fixed return value to be bool for execute() (did not run test suite)
2007-08-14 14:53:04 +00:00
zYne
635f1a9c8f
fixes #420
2007-08-13 22:01:27 +00:00
zYne
46154c5682
fixes #418
2007-08-13 21:51:23 +00:00
zYne
0686aef2c0
2007-08-13 21:39:29 +00:00
zYne
714a42239b
2007-08-13 21:23:56 +00:00
zYne
ce8fa91204
2007-08-13 21:14:53 +00:00
zYne
54d6296087
added RTRIM function support
2007-08-11 22:24:49 +00:00
zYne
a181b06e70
added TRIM function
2007-08-11 22:12:17 +00:00
zYne
1473df1976
new DQL WHERE parser
2007-08-11 21:53:02 +00:00
zYne
b83321e5dd
added removeLinks()
2007-08-11 21:35:58 +00:00
zYne
f619273778
2007-08-11 20:19:57 +00:00
nightfreak
6c0b5fd36c
added the fix for ticket #398 . also fixed the missing $coll->setReference() in Doctrine_Relation_Association::fetchRelatedFor()
2007-08-11 18:24:19 +00:00
zYne
b243286bee
formatting fix
2007-08-11 18:22:13 +00:00
nightfreak
2f85c85cf7
added the method refreshRelated() to Doctrine_Record
2007-08-11 17:49:43 +00:00
zYne
bc031289c0
fixes #425
2007-08-10 20:35:25 +00:00
meus
69f1bd41bb
removed notice error when running tests
2007-08-10 20:29:07 +00:00
njero
a903c927c4
Make the new hasOne stuff work with identifiers
2007-08-10 07:07:53 +00:00
njero
17787aa173
Need to include float in the list for length checks. In general this default for length should be removed downstream in validator but to be consistent
2007-08-10 07:07:24 +00:00
nicobn
5501a4b434
Fixed typo
2007-08-10 06:01:54 +00:00
njero
7f1666efc0
Changes to make hasOne relations with 'foreign' and 'local' work as expected
2007-08-10 05:54:21 +00:00
njero
4210452812
You cant call ucwords(strtolower(...)) on the plugin name because NestedSet will become Nestedset (lower s)
2007-08-09 23:12:31 +00:00
jackbravo
391bdc88a1
set isConnected to false when the connection is closed
2007-08-09 22:26:57 +00:00
jackbravo
0a50b95fed
Unified event listener methods for close() method: preClose() postClose()
2007-08-09 22:16:33 +00:00
zYne
78f683d855
fixes #424
2007-08-09 17:31:31 +00:00
zYne
5f7afb93f9
2007-08-09 17:27:13 +00:00
zYne
795bb23c2f
2007-08-09 17:25:07 +00:00
zYne
2468d4e78d
drafting the new clause parser
2007-08-07 20:41:33 +00:00
zYne
643a3ea86b
2007-08-07 20:17:11 +00:00
zYne
34c898da0e
2007-08-07 20:12:54 +00:00
zYne
a12e74d8df
2007-08-07 20:04:02 +00:00
nightfreak
818008492c
=When unserializing a serialized record the value of enum, array, object and gzip fields are restored + it is now possible to store an object of type Doctrine_Record in an object field
2007-08-07 15:37:30 +00:00
romanb
46e5a0d2f8
Fixed multiple-root setup with new syntax (actAs/loadTemplate). Forgot to pass the parameters.
2007-08-04 17:02:25 +00:00
romanb
7ad2c77a2d
- Updated nested set documentation
...
- Removed the reserved alias "base" from the nested set. It's no longer necessary to use that. Use whatever alias you want.
2007-08-04 14:33:15 +00:00
Jonathan.Wage
121d9ad9aa
A fixes to get the importing a little closer.
2007-08-03 22:05:05 +00:00
Jonathan.Wage
ff832983bd
Reorganized code.
2007-08-03 21:25:10 +00:00
zYne
1ef946aedb
2007-08-03 21:02:17 +00:00
zYne
45cb86dab9
2007-08-03 20:57:07 +00:00
zYne
5490247cc7
new templating model
2007-08-03 11:52:24 +00:00
zYne
90bf6241e4
2007-08-03 11:25:53 +00:00
zYne
da1a6e38a9
2007-08-03 11:24:45 +00:00
zYne
ab76c18fd7
2007-08-03 10:41:20 +00:00
zYne
013bdebe0b
2007-08-02 21:27:42 +00:00