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

214 Commits

Author SHA1 Message Date
Benjamin Eberlei
685e327b43 DDC-546 - Fix some rebasing issues. 2011-01-02 12:54:55 +01:00
Benjamin Eberlei
75d59d8695 DDC-546 - Added functionality for extra-lazy PersistentCollection::contains(). 2011-01-02 12:46:08 +01:00
Benjamin Eberlei
7c567b305a Refactor DDC-546 persister approach. 2011-01-02 12:46:08 +01:00
Benjamin Eberlei
d3d9957fd4 DDC-546 - Fix some minor glitches in patch. 2011-01-02 12:44:16 +01:00
Benjamin Eberlei
c998797c55 DDC-546 - Add Extra Lazy Collection prototype. 2011-01-02 12:44:16 +01:00
Benjamin Eberlei
78d4277e4b Merge branch DDC-117 into master 2011-01-02 12:01:05 +01:00
Benjamin Eberlei
a2cc9f0f6d DDC-949 - Bugfix for BasicEntityPersister not using $types for select clauses. This fixes the issue for PostgreSQL however it still occurs on Oracle. DBAL change is necessary for this. 2011-01-02 09:38:32 +01:00
Benjamin Eberlei
c2bbaa9ead DDC-117 - Slight changes in the patch and fixing inline comments. 2011-01-01 18:53:22 +01:00
Benjamin Eberlei
194a90923d DDC-117 - Finalize patch, fix all the problems of different use-cases by hugely expanding the test-model. 2011-01-01 18:17:19 +01:00
Benjamin Eberlei
337e2fa043 Fix DDC-795 (subtask of DDC-117) and integrated a test for cascade (that only works with sequence id generators). 2010-12-28 19:05:46 +01:00
Benjamin Eberlei
e7b4dca611 Merge master into DDC-117 2010-12-28 17:27:47 +01:00
Benjamin Eberlei
2d89ddfb1f DDC-837 - Fix bug with associations of the same name not being possible in inheritance hierachies. 2010-12-28 14:56:13 +01:00
Benjamin Eberlei
d87391e40c DDC-933 - Fix bug in lock sql generation of CTI classes. 2010-12-14 23:26:40 +01:00
Juozas Kaziukenas
b6da2e0e42 Proper FORM clause generation to support locking 2010-11-16 16:12:08 -08:00
Benjamin Eberlei
ac85584e9b DDC-870 - Fix several bugs with optimistic locking, conversion of types, multiple updating of values and inheritance related stuff. 2010-11-09 23:15:14 +01:00
Benjamin Eberlei
97eeb437b2 DDC-832 - Fix regression introduced with last commit. 2010-10-30 19:54:36 +02:00
Benjamin Eberlei
515ef33665 Fix quoting in BasicEntityPersister::_updateTable and BasicEntityPersister::delete. Added 6 tests for quoting of table names in different update, delete and inheritance scenario combinations 2010-10-30 19:33:20 +02:00
Benjamin Eberlei
89d0a52c4f DDC-833 - Fix some nasty bug occouring when re-creating an entity that was a proxy before. Also found another nasty issue with refreshing entity that had an already loaded many-to-many or one-to-many association. 2010-10-11 22:15:18 +02:00
Benjamin Eberlei
140ddf5098 DDC-817 - Add possibility to query by owning side association join column ids and tests for plain entities, single- and joined table inheritance 2010-09-27 22:31:18 +02:00
Benjamin Eberlei
13da816f4e DDC-748 - Fix bug in EntityManager::refresh() when entity has an owning side many-to-one bi-directional association 2010-09-12 21:41:22 +02:00
Benjamin Eberlei
5799e391c6 Fix bug with updating assoc-id entities 2010-08-15 14:40:06 +02:00
Benjamin Eberlei
e45c52b024 Merge Removal of association classes into DDC-117 branch, quite some merge efforts necessary to get it working again 2010-08-13 23:23:11 +02:00
Roman S. Borschel
8d3e0e61ea Moved association mappings to plain arrays, just like field mappings. 2010-08-09 22:48:07 +02:00
Benjamin Eberlei
7b07a17886 Merge branch 'master' into DDC-117 2010-08-08 14:07:24 +02:00
Roman S. Borschel
3630e06b84 [DDC-522][DDC-419][DDC-383] Fixed. 2010-08-08 12:40:32 +02:00
Benjamin Eberlei
c697a2d47f Prototype hack of @ManyToOne + @Id support with two test-scenarios, composite association key only composite key, and a mixed key scenario. I think single foreign association would work also 2010-08-07 19:33:54 +02:00
Benjamin Eberlei
ede6205204 DDC-130 - Make self-referential relationsships work by deleting both the owning and the inverse pair of keys 2010-07-10 13:35:58 +02:00
Benjamin Eberlei
b0e4d06c40 DDC-130 - Refactored deleteJoinTableRecords() even more, simplified approach disfavouring evil legacy database schemas 2010-07-10 13:12:33 +02:00
Benjamin Eberlei
1794127d51 DDC-130 - Refactored deleteJoinTableRecords() support 2010-07-10 12:04:02 +02:00
beberlei
233b3cd0b9 DDC-130 - Add initial version of deleteJoinTableRecords code on the persisters, flanked by 4 tests. 2010-07-09 22:55:30 +02:00
Roman S. Borschel
4212b88edc Fixed DDC-455, DDC-600. Some behavior and API polish in the UoW as well as continued _ prefix removal in some core classes. Cleanups and fixes for one-to-one orphan removal including tests. 2010-07-08 00:20:54 +02:00
Roman S. Borschel
88b0813536 Improved entity state detection. 2010-07-06 11:43:14 +02:00
Benjamin Eberlei
d4de420349 DDC-178 - Finish missing support for lock() on Class Table Inheritance Entities 2010-07-04 14:37:17 +02:00
Benjamin Eberlei
552865a867 DDC-649 - Remove IN queries for empty discriminator values if abstract base class is not part of the discriminator map 2010-07-04 13:34:41 +02:00
Roman S. Borschel
616f2eda0a [DDC-531] Fixed. 2010-05-21 11:49:05 +02:00
Benjamin Eberlei
78328ec6ea DDC-178 - Removed Doctrine\ORM\LockMode in favour of Doctrine\DBAL\LockMode 2010-05-15 11:48:20 +02:00
Benjamin Eberlei
64b57bbcfb Merge upstream into lock-support branch 2010-05-15 09:41:32 +02:00
Roman S. Borschel
f619a15a63 Removed EntityTransaction until it has a real purpose. Added the affected entity to OptimisticLockException. Updated functional optimistic locking tests accordingly. 2010-05-10 23:51:56 +02:00
Christian Heinrich
20c6259fa3 Corrected method names; the interface already used SQL, the files still used Sql in method names 2010-05-07 13:44:22 +02:00
Benjamin Eberlei
f65a555d04 Merge Upstream into Locking-Branch 2010-05-02 13:02:44 +02:00
Roman S. Borschel
ae39a5d389 Fixed svn dependency in build file and some weird issues where the oci8 driver loses spaces in the sql while transforming positional to named parameters. 2010-04-27 20:11:42 +02:00
Roman S. Borschel
d1d1cecc06 Restored missing files. 2010-04-26 14:12:20 +02:00
Roman S. Borschel
b505a27370 Renamed StandardEntityPersister to BasicEntityPersister 2010-04-26 13:12:46 +02:00
Roman S. Borschel
760ea34a0c [DDC-497][DDC-500][DDC-342] Fixed. Persister polishing and refactoring. More to come for that, but after beta1. 2010-04-26 13:02:30 +02:00
Benjamin Eberlei
c763b47626 Merge commit 'dc2master/master' into lock-support 2010-04-21 20:30:41 +02:00
Roman S. Borschel
01c2c06bbf [DDC-512] Fixed. 2010-04-15 18:36:17 +02:00
Roman S. Borschel
d4232d906e [DDC-388] Fixed. 2010-04-14 17:07:08 +02:00
Roman S. Borschel
db603547a2 Added failing test for DDC-388. Naming refactorings and comment cleanups. 2010-04-13 00:49:19 +02:00
Benjamin Eberlei
dfbd9e6e2f DDC-178 - Add additional tests for Locking Support 2010-04-11 16:43:33 +02:00
Benjamin Eberlei
4a1c3785ec Merge commit 'dc2master/master' into lock-support 2010-04-10 10:12:35 +02:00
Roman S. Borschel
7cc56c45d3 [DDC-193] Fixed. 2010-04-10 00:00:36 +02:00
Benjamin Eberlei
e6a44b145f [DDC-178] First approach to Locking support 2010-04-08 22:50:06 +02:00
beberlei
c9f1954044 [2.0] DDC-342 - Throw Exception with notice in case of Many To Many relation pointing to Joined Inheritance Hierachy until this feature is completed 2010-04-03 07:09:20 +00:00
guilhermeblanco
c9de54b4a2 [2.0] Changed Connection::execute() to Connection::executeQuery() as defined as a todo. 2010-03-31 21:13:34 +00:00
romanb
354ede1e04 [2.0][DDC-354][DDC-425] Fixed. Encapsulated SQL logging better in the DBAL. Added binding types to DBAL mapping types as well as using these binding types in the persisters. Query and NativeQuery now support PDO binding types as well as DBAL mapping types when binding parameters. 2010-03-29 13:20:41 +00:00
romanb
76663a0501 [2.0][DDC-416] Fixed. 2010-03-18 11:40:43 +00:00
romanb
a53c2fbd6c [2.0] Code cleanups. Preparations for DDC-193. Fixed DDC-399, type configuration remains global for now but the irritating instance methods on the Configuration have been removed. Use Type::addType et al. Added TODOs for naming standards. 2010-03-15 17:19:00 +00:00
romanb
df6ca602fb [2.0][DDC-92] Fixed. Patch provided by Christian Heinrich. [DDC-274] Started some method renaming. [DDC-142] Fixed (join column names and discriminator column names dont support quoting) [DDC-258] Fixed. 2010-03-05 16:35:00 +00:00
beberlei
a0fc09855b [2.0] DDC-353 - Fix UnitOfWork::createEntity and StandardPersister::refresh() not marking created Proxy instances as MANAGED like EntityManager::getReference() does 2010-02-28 14:14:44 +00:00
romanb
a1a8093888 [2.0] First draft for onFlush event. 2010-02-24 19:19:04 +00:00
beberlei
e5ed3f66ac [2.0] DDC-351 - Fix Delete in JoinedSubclassPersister 2010-02-19 22:49:03 +00:00
beberlei
31b0705ed5 [2.0] DDC-336 DDC-337 - Changed @OrderBy annotation to take a DQL not SQL snippet, restrict it to field names and positional orderings. Changed all test-cases and added a test-case that shows the behaviour for OneToMany JoinedSubclassPersister Managed Entities. 2010-02-15 22:50:35 +00:00
beberlei
30d1b54db1 [2.0] DDC-337 - Collections that are fetched through StandardEntityPersister and ordered are sorted by any given ORDER BY snippet. Now only the DQL Parser is missing in this regard. 2010-02-14 21:21:43 +00:00
romanb
da582e1125 [2.0] Fixed hardcoded version field access in optimistic locking. 2010-02-14 10:48:25 +00:00
romanb
4adc289596 [2.0][DDC-284] Fixed. API polish and some convention over configuration simplifications for join columns and join tables. 2010-02-09 17:13:49 +00:00
beberlei
98a77d9387 [2.0] Add missing Docblock comments in AbstractCollectionPersister 2010-02-07 13:23:20 +00:00
romanb
94d41dfbdc [2.0][DDC-279] Fixed. 2010-01-29 21:24:29 +00:00
guilhermeblanco
ad578e57f7 [2.0][DDC-240] Fixed issue with StandardEntityPersister that was attempting to delete Entities based on field names instead of column names. 2010-01-05 17:07:57 +00:00
romanb
afbe3add30 [2.0][DDC-221] Namespace fixes. 2009-12-22 13:56:30 +00:00
romanb
30ed439111 [2.0][DDC-144][DDC-113] Fixed. 2009-12-18 12:30:19 +00:00
romanb
3d14da4105 [2.0][DDC-168] Moved INSERT SQL generation to persisters during runtime. 2009-12-17 13:37:47 +00:00
romanb
fe7ef4bbeb [2.0][DDC-122][DDC-97][DDC-98][DDC-147] Refactored metadata mapping drivers by removing the useless PRELOAD mode. Introduced ClassMetadataFactory#getAllMetadata. Classloader simplifications. Old classloaders deprecated. New Doctrine\Common\ClassLoader is almost the same as the previous IsolatedClassLoader. 2009-12-15 21:06:32 +00:00
romanb
097d1d6bee [2.0] Fixed _doMerge not to use hydrateAdd. 2009-12-11 10:38:21 +00:00
romanb
909e98c6f2 [2.0][DDC-202][DDC-132][DDC-185] Fixed. 2009-12-09 12:37:57 +00:00
romanb
1013eb66c1 [2.0] Fixed PHP Notice in SchemaTest (only variables should be passed by reference...) and a few other cosmetics in various parts. 2009-12-07 12:47:23 +00:00
romanb
22375235db [2.0][DDC-162][DDC-94] Fixed. 2009-12-02 20:49:10 +00:00
romanb
fdd9b05158 [2.0] Fix for optimistic locking. 2009-11-25 21:48:04 +00:00
romanb
555b097641 [2.0][DDC-164][DDC-165] Fixed. Cleaned up ManyToManyMapping. Cleaned up identifier handling and handling of composite identifiers in some places. 2009-11-21 18:52:02 +00:00
romanb
8e3f6eee0a [2.0][DDC-121] Fixed. Also fixed memcache tests and some small refactorings. 2009-11-08 11:07:49 +00:00
beberlei
b24811e29a [2.0] Fix Fatal errors in unused classes that crash the testsuite when running PHPUnit with coverage-whitelisting of complete Doctrine directory. 2009-11-06 17:05:22 +00:00
romanb
7bbdac1c88 [2.0][DDC-61][DDC-108] Fixed. Started exception refactoring. 2009-11-03 18:30:21 +00:00
romanb
f572c372dc [2.0] Fixed DDC-18. Simplified proxy classes. Just 1 proxy class per entity now, instead of 2. 2009-10-28 15:32:55 +00:00
romanb
4fc1781d78 [2.0][DDC-22] Fixed. Also cleaned up association handling. More to come: exception refactorings, proxy simplifications (single proxy class, not two). 2009-10-28 10:31:47 +00:00
romanb
ac4b4889a6 [2.0][DDC-57] Fixed. 2009-10-26 13:05:32 +00:00
romanb
08694d1826 [2.0] Some optimizations and small fixes. 2009-10-25 21:40:57 +00:00
romanb
204b57e115 [2.0][DDC-57] Fixed. 2009-10-23 15:01:32 +00:00
romanb
5b60f87859 [2.0] Fixed some known issues with inheritance, especially class table inheritance, like join columns not being selected. 2009-10-22 19:12:00 +00:00
romanb
e2d678cc10 [2.0] Refactorings to reduce duplicated code and increase efficiency. 2009-10-22 12:50:58 +00:00
romanb
84d3cb971e [2.0] Removed debug code. 2009-10-15 19:04:27 +00:00
romanb
0b3ae4b169 [2.0] Removed all remaining references to deprecated allowPartialObjects option. 2009-10-15 19:03:27 +00:00
romanb
5842411afe [2.0][DDC-49][DDC-50][DDC-33] Fixed DDC-49 and DDC-50. Also addressed DDC-33. Various other small changes and fixes. For problems with proxy objects please refer to the updated documentation. 2009-10-15 14:39:43 +00:00
romanb
3d3bcc1742 [2.0][DDC-7] Fixed. 2009-09-15 12:24:38 +00:00
jwage
7aabee5efc [2.0] Fixing empty insert sql statements (closes #2481) 2009-09-08 19:31:26 +00:00
jwage
05d5fe4954 [2.0] Finishing optimistic locking with timestamp support 2009-08-24 17:06:12 +00:00
romanb
3d17cb0d60 [2.0] Applied fixes for character casing issues. Simplified inheritance mapping and improved handling of outer joins in Class Table Inheritance. 2009-08-17 17:58:16 +00:00
romanb
32069cc2b5 [2.0] More preparations to fix character casing issue. Reverted and completed ConditionalPrimary parsing and added more tests for this. 2009-08-16 16:36:00 +00:00
romanb
ebb432bfb8 [2.0] Preparing to address character casing issue. 2009-08-15 18:11:51 +00:00
romanb
e578bad687 [2.0] Fixed several referential integrity issues. Fixed critical issue with inserts being run twice on postgresql/oracle. Added support for additional tree walkers that modify the AST prior to SQL construction and started to play with it in a testcase. 2009-08-13 10:13:06 +00:00
romanb
8797921937 [2.0] Removed AssociationMappings from ResultSetMapping for improved caching. Fixed caching issue with reflection classes and properties. Reimplemented and leaned up broken identifier quoting. Added support for named (native) queries. Fixed small hydration memory leak. 2009-08-11 10:51:38 +00:00
guilhermeblanco
103cdf5778 [2.0] More docblocks. Renamed methods Type::addCustomType to Type::addType and Connection::exec to Connection::executeUpdate. Added Type::hasType. 2009-08-10 22:43:27 +00:00