1
0
mirror of synced 2024-12-14 23:26:04 +03:00
Commit Graph

1313 Commits

Author SHA1 Message Date
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
zYne
1c919c7a0a added whereIn 2007-08-02 21:24:29 +00:00
Jonathan.Wage
48481be4bd Fixed issue with isValidNode() not always being passed a Doctrine_Record and fixed issue with params being sent to set(), moved to where() until set() can handle params 2007-08-02 20:05:12 +00:00
meus
c9d6a046fa fixing issue mention on the mailing list by tl@hdnet.de at 2.aug 2007-08-02 19:28:46 +00:00
zYne
2cc28d066c 2007-08-02 18:57:01 +00:00
zYne
97ca7c9c36 wildcard support for search query language 2007-08-02 12:01:38 +00:00
zYne
2c76c48bfe updated search query parser engine, now supporting operators OR, AND and NOT 2007-08-01 23:42:22 +00:00
zYne
f81c5c3b39 fixed fatal bug in sql explode 2007-08-01 23:25:24 +00:00
zYne
ebfc0971c6 2007-08-01 22:53:33 +00:00
zYne
d59f761da0 2007-08-01 19:37:28 +00:00
zYne
64f7e3a36e added default lengths for all data types 2007-08-01 19:32:53 +00:00
Jonathan.Wage
75a1ead588 Fixed issue with count() and composite column primary keys 2007-08-01 17:56:18 +00:00
njero
cb146fb8e8 The index lookup needs to allow for array("fields" => "name") where the fields list
is a string and not an array
2007-08-01 14:50:46 +00:00
zYne
bc6ff6903d added base plugin class 2007-07-31 21:59:45 +00:00
zYne
a57226b086 fixes #338 2007-07-31 20:22:10 +00:00
zYne
a269fcdb18 Custom join condition model rewritte, full support for ON and WITH keywords 2007-07-31 19:33:58 +00:00
lukenukem
b2d9a22816 OFFSET and LIMIT for PostgreSQL corrected. 2007-07-31 05:50:41 +00:00
zYne
fe1bc520a8 2007-07-30 22:30:41 +00:00
zYne
ac88e64940 2007-07-30 21:30:39 +00:00
zYne
37198a6bb7 formatting fix 2007-07-30 19:35:41 +00:00
zYne
c045174fde 2007-07-30 19:29:37 +00:00
zYne
1a18acb762 2007-07-30 19:13:05 +00:00
meus
7ab2e58609 added setSubclasses to abstractRecord. Fixed classes in tests. added some more output to the Test.php script 2007-07-30 19:01:16 +00:00
romanb
8a0898d3ed Several fixes for mysql export module (incorrectly added indices)
Ticket: 408
2007-07-30 11:47:36 +00:00
romanb
7583a8d8ac Preliminary fix for a bug that occurs when using NestedSet + Column aggregation inheritance 2007-07-29 19:38:11 +00:00
meus
4e4dc0a6df fixed some failing testcases in columnaggregation. the if check was to strict 2007-07-28 20:27:38 +00:00
zYne
5b611b5302 2007-07-27 20:18:58 +00:00
zYne
201f821b27 2007-07-27 19:24:28 +00:00
zYne
9bc4d7618e 2007-07-27 19:03:32 +00:00
mahono
c662f4d99f * added new fetchOne() method for convenience
* some whitespace cleanups
2007-07-27 15:58:37 +00:00
zYne
97e82445d7 2007-07-27 15:35:37 +00:00
zYne
f0275da674 deprecated lockmode attribute 2007-07-27 15:31:33 +00:00
zYne
0e8f67968c 2007-07-26 23:44:09 +00:00
zYne
f31eaa9ab3 2007-07-26 23:10:04 +00:00
zYne
569348bdda 2007-07-26 22:57:36 +00:00
zYne
8ee4d75b69 2007-07-26 19:52:12 +00:00
zYne
e60c34c735 2007-07-25 20:45:25 +00:00
zYne
330156e7b6 2007-07-24 20:38:42 +00:00
zYne
cbf6e48aa3 2007-07-24 20:38:21 +00:00
zYne
91ee810ad1 2007-07-24 19:58:44 +00:00
romanb
fc2f9f29bd Closes #405.
Syntax for getting input properly escaped through prepared statements:
$query->set('field', 'field + ?', $value)
or
$query->set('field', 'field + ? - ?', array($value1, $value2))
or simply
$query->set('field', '?', $value)
Ticket: 405
2007-07-24 11:34:00 +00:00
zYne
9eeebfd815 2007-07-24 09:35:11 +00:00
zYne
8a393ab44d 2007-07-23 23:44:14 +00:00
zYne
cfaa5f121f 2007-07-23 23:18:11 +00:00
zYne
23025b5872 2007-07-23 23:10:50 +00:00
zYne
d0d2067942 2007-07-23 22:50:07 +00:00
zYne
c26ed8441b 2007-07-23 20:28:46 +00:00
zYne
ad44c65648 new record locking mechanism 2007-07-23 18:50:32 +00:00
zYne
a2111d60af 2007-07-23 18:32:29 +00:00
zYne
752a26cb76 2007-07-23 18:27:00 +00:00
meus
2d55394109 fixed default error message for ValidatorException that list the classes that have validation errors 2007-07-21 22:15:22 +00:00
meus
a690adfb2a fixing so taht getName uses the correct constants 2007-07-21 20:03:28 +00:00
meus
5d79089d1f fixes #395 applied Antik´s patch and ran tests. 1 less failure 2007-07-21 16:49:52 +00:00
meus
eca9f79dc8 removed array_unique in Hydrate/Record and added test to run.php fixes #403 2007-07-21 16:35:04 +00:00
meus
feaade5850 Fixing hasRelation closes #406 2007-07-21 15:46:31 +00:00
romanb
75dbc8c841 Several bugfixes for the export module (expecially pgsql). 2007-07-21 15:17:17 +00:00
zYne
6348e5f709 2007-07-21 11:46:08 +00:00
zYne
141a95669d 2007-07-21 11:34:07 +00:00
zYne
41bb34ef0f 2007-07-20 20:41:13 +00:00
zYne
6674d341c7 2007-07-20 20:32:24 +00:00
zYne
9d8dfbce50 2007-07-20 20:03:32 +00:00
zYne
7ea7d586d6 2007-07-20 19:51:19 +00:00
RossC0
bba435d7a1 [#404] restored addFrom for the DQL - went missing in Query.php refactorings 2007-07-20 10:11:13 +00:00
zYne
b44f13e732 2007-07-20 09:48:28 +00:00
zYne
8651135b96 fixed INT_MAX issue 2007-07-20 09:38:10 +00:00
zYne
941a2e5761 2007-07-18 19:31:43 +00:00
zYne
b13a70c087 2007-07-18 19:18:30 +00:00
zYne
6823c76544 2007-07-17 21:10:18 +00:00
zYne
1633b07f1d 2007-07-17 20:59:09 +00:00
zYne
163c1aaa61 2007-07-17 20:45:10 +00:00
zYne
fb58fb6598 2007-07-16 19:26:14 +00:00
zYne
4226685f3c 2007-07-16 19:26:00 +00:00
zYne
59be22b329 2007-07-16 19:19:29 +00:00
zYne
d49c6cabeb 2007-07-13 21:51:03 +00:00
zYne
18115c7711 2007-07-13 16:22:49 +00:00
zYne
3502fd9299 identifier quoting fix 2007-07-12 22:31:16 +00:00
zYne
af7d3addd6 2007-07-12 21:50:31 +00:00
Jonathan.Wage
c37c61b5aa Fixed count() returning incorrect count when groupby exists. 2007-07-12 21:37:18 +00:00
Jonathan.Wage
c9dafc24aa Changed where() and orderBy() to addWhere() and addOrderBy() 2007-07-12 15:41:26 +00:00
zYne
c1511dd391 2007-07-11 22:03:47 +00:00
pookey
931bc8de23 * Correction to Record Event Chain stuff
* Updating AuditLog to new way of doing array hydration
2007-07-11 15:32:13 +00:00
zYne
d434174a96 added Search component, new record event listeners and some tests 2007-07-11 14:39:15 +00:00
zYne
b32163fab3 2007-07-11 13:20:39 +00:00
zYne
1b9dcfb445 2007-07-11 11:30:27 +00:00
zYne
9f7b5734f8 2007-07-11 11:27:02 +00:00
zYne
bb13fe2a93 2007-07-11 10:22:01 +00:00
nicobn
befc0c16b0 Builder was broken. Applied patch sent by Carl Michael Skog. 2007-07-10 15:20:13 +00:00
zYne
e47a72d3ce 2007-07-09 23:01:59 +00:00
zYne
c67cd12226 2007-07-09 22:56:34 +00:00
zYne
0ae630046f 2007-07-09 22:47:34 +00:00
zYne
b2f255669b 2007-07-09 22:42:33 +00:00
zYne
e6680a92c3 2007-07-09 13:26:20 +00:00
zYne
1c4f4f665b 2007-07-09 12:36:21 +00:00
zYne
5aea10ec39 2007-07-09 11:23:44 +00:00
zYne
54e5f45c61 2007-07-09 11:06:49 +00:00
hansbrix
4cb332fba4 added method to properly quote IN (...) strings
Ticket: 383
2007-07-09 07:55:45 +00:00
zYne
fcc58778c5 2007-07-08 20:18:50 +00:00
zYne
4004541b60 2007-07-08 19:35:53 +00:00
zYne
7133b67657 2007-07-08 19:33:57 +00:00
zYne
84f764cf56 minor relation fix 2007-07-08 19:19:53 +00:00
romanb
532d3da4f1 Bugfix for hydration. (zyne, please have a look at the diff).
Improvements and enhancements to the NestedSet (not BC! please have a look at draft/nestedset_changes.tree).
Added a model that was missing in the repos (model/BlogTag).
Updated a testcase.
2007-07-08 12:57:52 +00:00
romanb
abb7773666 Fixed wrong constant. 2007-07-07 08:35:26 +00:00
gnat
85ec506691 fix some an infinite recursion when deleting records that reference each other with ownsOne 2007-07-06 21:18:36 +00:00
zYne
56768b613f fixed identifier quoting 2007-07-06 20:55:15 +00:00
zYne
f5277b5ff5 added fetchArray() 2007-07-06 13:10:54 +00:00
zYne
2c9546e007 2007-07-06 12:39:53 +00:00
zYne
dbd49e9310 2007-07-05 23:47:48 +00:00
zYne
58f6d356e0 renamed Doctrine_Record::obtainIdentifier() to Doctrine_Record::identifier(), fixed identityMap implementation 2007-07-05 23:21:29 +00:00
zYne
65f0cb8d27 2007-07-05 22:53:51 +00:00
zYne
ec39adcd73 2007-07-05 22:42:32 +00:00
zYne
615dcdb84e 2007-07-05 20:03:38 +00:00
zYne
411779d102 2007-07-05 19:04:37 +00:00
zYne
e4114c47fa fixed literal enum conversion with joins 2007-07-05 17:25:53 +00:00
davidc
62fbe90fc7 Better sequence handling, making sure we are using DEFAULT VALUES with identify set to off.. we turn it off (identity insert, then we insert). 2007-07-03 22:56:56 +00:00
romanb
42ef7176ae Introduced setHydrationMode() and new hydration constants. 2007-07-01 13:46:34 +00:00
zYne
20e6b007f7 2007-07-01 12:11:44 +00:00
zYne
cc7b1367fa support for expressional column values 2007-07-01 11:27:45 +00:00
meus
fa6523a4bf fixed some inconsitensies with the codeing style 2007-07-01 10:47:44 +00:00
meus
999aeff0de added new xml options record_name and collection_name so that you can override default behavior if wanted 2007-07-01 10:46:24 +00:00
zYne
9703f18ca8 2007-06-29 12:45:26 +00:00
zYne
0624cbd867 2007-06-29 10:18:05 +00:00
zYne
b080397f02 2007-06-29 09:39:03 +00:00
zYne
17410fc243 2007-06-28 22:16:24 +00:00
zYne
5b2c57af1f 2007-06-28 21:43:31 +00:00
zYne
2d2e01a783 2007-06-28 19:40:33 +00:00
zYne
57b4a549f2 2007-06-28 19:19:47 +00:00
zYne
c02c83d4a7 2007-06-28 13:15:24 +00:00
zYne
417b71f447 2007-06-28 12:11:55 +00:00
zYne
f4842edd98 2007-06-28 12:00:49 +00:00
zYne
b4ad603841 2007-06-28 11:56:56 +00:00
zYne
5586bf92ec 2007-06-28 10:39:40 +00:00
zYne
501e8e9158 2007-06-27 22:40:17 +00:00
zYne
e1979612c7 2007-06-27 22:29:57 +00:00
zYne
2a2cb285a0 2007-06-27 18:42:47 +00:00
zYne
279f3d69f9 2007-06-27 18:03:16 +00:00
zYne
07a710ef0b 2007-06-27 17:51:51 +00:00
zYne
760e598ba5 2007-06-27 17:46:34 +00:00
zYne
a6139bb381 2007-06-27 17:41:02 +00:00
zYne
e3719874bd 2007-06-27 16:59:23 +00:00
zYne
9f604e7be5 2007-06-27 16:30:13 +00:00
zYne
6d29c834de deprecated countRelated() 2007-06-27 16:22:41 +00:00
zYne
94fb249ea2 2007-06-27 16:21:29 +00:00
meus
a164c6a2cd fixed some in the export xml functions to correctly show records if no ignore_fields are set and to use database table name and not classname as basis for xml containers 2007-06-27 08:14:05 +00:00
nicobn
2acd30624d Added a new method to give more options to the user. 2007-06-27 02:44:20 +00:00
zYne
81d39c5026 2007-06-26 23:12:45 +00:00
zYne
625b6a3f82 2007-06-26 22:35:08 +00:00
subzero2000
741cc3f045 Corrected Doctrine_EventListener method names. Fixes #366 2007-06-26 22:30:23 +00:00
subzero2000
d4bc0d3637 Ensure usage of Doctrine_Connection_Statement rather than PDOStatement in Doctrine_Connection::execute(). Fixes #365 2007-06-26 22:29:31 +00:00
subzero2000
031b2ba70c Added check to ensure a foreign object is actually a Doctrine_Record before calling isModified. 2007-06-26 21:06:19 +00:00
zYne
c5fc122852 fixes #364, optimized the bulkDelete for composite primary keys, security check for circular references in cascading saves 2007-06-26 13:08:58 +00:00
RossC0
82432b33df #368 refs: r1846 Missed Doctrine_identifier 2007-06-26 12:51:46 +00:00
zYne
8b8ae07e00 2007-06-26 12:08:50 +00:00
zYne
397607762b 2007-06-26 11:35:58 +00:00
zYne
ae8f683856 2007-06-26 11:19:25 +00:00
zYne
4ed4477177 2007-06-26 10:23:23 +00:00
zYne
87474aa019 fixes #367 2007-06-26 10:12:00 +00:00
zYne
a3f2cae863 fixes #360 2007-06-26 10:05:26 +00:00
zYne
d76814c8d1 removed Doctrine_Identifier 2007-06-26 09:51:08 +00:00
zYne
4add4697d0 removed deprecated classes 2007-06-26 09:42:50 +00:00
nicobn
215d06c544 - Moved the record template inside the builder class, otherwise it is
not included in the bundle; removed Record.tpl
- Changed manual newlines to PHP_EOL
- Added a parameter to explicitly set the table name
- Added a parameter to explicitly set the class file target
2007-06-26 06:03:15 +00:00
subzero2000
f3245d4389 Corrected minor typo in phpDoc comment. 2007-06-26 04:36:12 +00:00
nicobn
d548a43984 The method is not static anymore, replaced self by $this. 2007-06-26 00:58:21 +00:00
nicobn
4d5745c7eb Added two parameters so a different file name / class name can be specified. 2007-06-26 00:41:48 +00:00
zYne
15db4bd535 2007-06-25 21:36:45 +00:00
zYne
fd54aae035 2007-06-25 20:52:42 +00:00
zYne
d4cbba723b 2007-06-25 20:49:15 +00:00
zYne
612793d9cb fixes #359 2007-06-25 20:08:16 +00:00
zYne
f86ac4c8e2 getDbh() now auto-connects 2007-06-25 19:56:15 +00:00
zYne
7488435668 2007-06-25 19:16:39 +00:00
zYne
1273563b31 Export now executes the constraint clauses after the CREATE TABLE clauses 2007-06-25 19:03:58 +00:00
zYne
c45823aa49 new transaction tests 2007-06-25 18:47:36 +00:00
subzero2000
a795996efa Addresses issue of infinte function recursion when saving related objects. Fixes #363. 2007-06-25 17:51:37 +00:00
zYne
a593d746c3 2007-06-25 17:51:19 +00:00
subzero2000
dea4968a23 Completes deprecation of Doctrine_Db. Fixes #362. 2007-06-25 17:48:44 +00:00
zYne
fb46481ab2 added namespaces for event constants 2007-06-25 17:24:20 +00:00
zYne
efea8acc66 2007-06-25 17:01:29 +00:00
nicobn
83128e79b4 Removed debug lines (let's hope I did not forget anything else !) 2007-06-25 17:00:43 +00:00
nicobn
a36461c825 /* */ to // style comments in methods 2007-06-25 16:56:46 +00:00
nicobn
56e2d36281 Coding standard compliance 2007-06-25 16:54:55 +00:00
zYne
4f7e92ffb9 2007-06-25 10:21:57 +00:00
zYne
14488476fc 2007-06-25 10:16:54 +00:00
zYne
e1fbae22a4 EventListener method names updated 2007-06-25 10:08:03 +00:00
zYne
628aac0ef4 2007-06-25 09:12:09 +00:00
zYne
ab1f1de913 2007-06-24 22:23:53 +00:00
zYne
0d5b4493c3 formatting fix 2007-06-24 22:12:46 +00:00
zYne
ee07246d67 2007-06-24 22:04:57 +00:00
zYne
401c3fe9b7 2007-06-24 21:50:19 +00:00
zYne
0a2b07350a deprecated Doctrine_Db 2007-06-24 21:47:06 +00:00
zYne
782cbe37f8 new template methods 2007-06-24 21:37:19 +00:00
zYne
0ea15604fd data type check 2007-06-24 21:05:12 +00:00
zYne
431b63d6bd fixes #356 2007-06-24 21:04:54 +00:00
zYne
b116d3ad3f 2007-06-24 20:11:41 +00:00
hansbrix
2206476d55 avoid attempting to export non-record classes like symfony's sfDoctrineRecord 2007-06-23 22:53:00 +00:00
nicobn
613fdf0952 Added the XML schema import facilities. 2007-06-22 17:48:27 +00:00
gnat
658d4bb618 Commented out unreacheable code. 2007-06-22 17:39:45 +00:00
gnat
2a7037cd31 uninitialized/unknown variables 2007-06-22 17:38:08 +00:00
gnat
80f15ee668 undefined/uninitialized variable 2007-06-22 17:37:32 +00:00
gnat
4ad0c5045a undefined/uninitialized variables 2007-06-22 17:37:06 +00:00
gnat
f62897b873 While updating sfDoctrine, stumbled across these errors. this->_stmt->queryString is a protected field and should be access from getQuery() instead. 2007-06-21 16:37:27 +00:00
zYne
8faf31e3ae 2007-06-20 14:12:31 +00:00
zYne
68b3a6a966 new classes Doctrine_Event, Doctrine_Connection_Profiler_Exception and Doctrine_Util 2007-06-19 23:34:30 +00:00
zYne
113ac3b9e0 1. Merging two event listener APIs
2. Merging Doctrine_Db functionality into Doctrine_Connection

3. Merging Doctrine_Db modules to Doctrine_Connection plugins
2007-06-19 23:33:04 +00:00
zYne
bef66f5b4a 2007-06-19 23:28:39 +00:00
zYne
5718cbb16c 2007-06-19 23:20:39 +00:00
zYne
99ad6fbbc9 2007-06-19 23:15:52 +00:00
zYne
ea30a65b57 2007-06-19 23:07:05 +00:00
zYne
7eba036cdc 2007-06-19 22:55:34 +00:00
zYne
b525df802e 2007-06-19 22:02:11 +00:00
zYne
fbc1d9c3ec 2007-06-19 21:16:04 +00:00
zYne
ad3f5bb6ff 2007-06-19 19:51:25 +00:00
zYne
4ed1d1154a 2007-06-19 19:32:52 +00:00
zYne
91f51b92b9 fixes #351 2007-06-19 19:26:18 +00:00
zYne
50c9cf3bc6 2007-06-19 18:53:46 +00:00
zYne
7cac28ba34 2007-06-19 12:25:28 +00:00
zYne
a7632ff797 fixed index generation 2007-06-19 11:18:10 +00:00
zYne
0c560d73f9 2007-06-19 11:10:13 +00:00
zYne
997d066f02 fixed dropTable() 2007-06-19 10:58:54 +00:00
zYne
a0dd44ad63 2007-06-19 10:43:19 +00:00
zYne
c5d0890904 2007-06-19 10:40:39 +00:00
zYne
1c92387852 2007-06-19 10:33:48 +00:00
zYne
6ff9ee9124 2007-06-19 10:15:44 +00:00
zYne
3736c71a2c 2007-06-19 10:06:19 +00:00
zYne
ab530652bb added getRoot 2007-06-18 23:42:30 +00:00
zYne
a770f83d45 DQL-to-SQL lazy conversion 2007-06-18 22:30:15 +00:00
zYne
78e1ec9757 2007-06-18 21:22:11 +00:00
zYne
a6a612332f 2007-06-18 20:00:44 +00:00