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

3455 Commits

Author SHA1 Message Date
Benjamin Eberlei
9a75277dd4 [DDC-692] Add ClassMetadataInfo::isReadOnly flag and ignore these entities in Change Tracking. 2011-03-29 20:04:14 +02:00
Benjamin Eberlei
36985ee704 Merge remote branch 'mridgway/DDC-696' into DDC-696 2011-03-29 19:42:38 +02:00
Benjamin Eberlei
bda15231da [DDC-1077] Bugfix in not handling literals in Select Expressions. 2011-03-27 21:10:50 +02:00
Benjamin Eberlei
6ed0ff0a12 [DDC-1079] Bugfix for shortcut for ArithmeticExpressions in SimpleSelectExpression that lead to literals not being valid. Problem was that ScalarExpression() did not handle AggregateExpressions() at all, which is now fixed. 2011-03-27 14:04:53 +02:00
Benjamin Eberlei
4f1af0114f [DDC-1014] Add DATE_ADD(), DATE_SUB(), DATE_DIFF() functions for DQL. 2011-03-27 12:18:47 +02:00
Benjamin Eberlei
5d1b4f98de [DDC-1014] Update DBAL remote to include date arithmetics related functionality. 2011-03-27 11:34:14 +02:00
Michael Ridgway
706cc838e5 Removed svn variable 2011-03-22 08:54:33 -04:00
Michael Ridgway
1f50dee8a8 DDC-696: Added onClear event 2011-03-21 23:17:08 -04:00
Benjamin Eberlei
e126315c1b Bump DBAL dependency to include Security Fix for AbstractPlatform::modifyLimitQuery() 2011-03-21 23:54:40 +01:00
Benjamin Eberlei
7a41a205ee [DDC-992] Fix criteria usage of column names clashing with field or associations by prefixing with table names or alias. 2011-03-20 17:07:19 +01:00
Benjamin Eberlei
edfdbe10a0 [DDC-1053] Fix bug with usage of identification variables in GroupByItem. 2011-03-20 14:07:33 +01:00
Benjamin Eberlei
e42a227a7c [DDC-1052] Fix bug with versioning and inheritance 2011-03-20 13:07:47 +01:00
Benjamin Eberlei
ac175d2c40 [DDC-1068] Fix case-sensitivity problems of first loading of Metadata. 2011-03-20 12:35:52 +01:00
Benjamin Eberlei
62755cc647 [DDC-1070] Fix in AbstractQuery::iterate() method not respecting hydrator and parameters. 2011-03-20 12:19:01 +01:00
Benjamin Eberlei
53ca54ced6 Merge branch 'master' of github.com:doctrine/doctrine2 2011-03-16 23:01:17 +01:00
Benjamin Eberlei
e757e3beaf Merge branch 'DDC-952' 2011-03-16 23:00:57 +01:00
Benjamin Eberlei
5192306d39 [DDC-952] One last commit with some refactorings, additional comments and two new tests. Also added convenience method Query::setFetchMode($className, $assocName) 2011-03-16 22:51:32 +01:00
Benjamin Eberlei
4b98e3ea8e DDC-952 - Remove unnecessary instance variable and comment on one feature. 2011-03-16 00:03:43 +01:00
Benjamin Eberlei
b7e522d7a7 DDC-952 - This nasty inheritance hydration bug slipped in again, fixed again now. 2011-03-15 23:39:19 +01:00
Benjamin Eberlei
1b46208aa5 [DDC-952] More fixes 2011-03-15 21:34:47 +01:00
Benjamin Eberlei
b3c01903b4 DDC-952 - Optimization 2011-03-15 20:03:05 +01:00
Benjamin Eberlei
a04ba44874 [DDC-952] Introduced SimpleObjectHydrator again for performance reasons. 2011-03-15 19:48:04 +01:00
brikou
9a8e8ce35d Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub 2011-03-15 05:39:38 -07:00
Albert Jessurum
234d2e5f0f Fix typo on schema help messages 2011-03-15 12:22:53 +01:00
Guilherme Blanco
180078d0f6 Added namedQueries as optional during serialization of ClassMetadata. 2011-03-14 01:04:50 -03:00
Benjamin Eberlei
38ad25ad4c [DDC-952] Remove all the unnecessary hydration code from all Persisters. 2011-03-13 00:23:46 +01:00
Benjamin Eberlei
1bc4b62805 [DDC-952] Make collection loading work with hydrators also. 2011-03-13 00:15:50 +01:00
Benjamin Eberlei
7c7106b1c1 DDC-952 - Fix bug in inverse one-to-one eager loading sql code. 2011-03-12 19:11:37 +01:00
Benjamin Eberlei
8794d35867 DDC-952 - Woah this still needs tons of tests. 2011-03-09 23:30:35 +01:00
Benjamin Eberlei
595c19207c [DDC-914] Always fetch joining inverse side one-to-one associations breaks a ton of DDC-117 tests, investigate why to make this working also. 2011-03-09 23:21:33 +01:00
Benjamin Eberlei
077ae9cee9 [DDC-914] Fetch join many-to-one/one-to-one associations configured as FETCH_EAGER inside the persisters. 2011-03-09 23:14:54 +01:00
Guilherme Blanco
7d1fca1ca2 Added support to NamedQueries through ClassMetadata. 2011-03-09 14:43:42 -03:00
Benjamin Eberlei
fd502631c7 DDC-734 - REname query hint to fetchEager. 2011-03-08 22:28:55 +01:00
Benjamin Eberlei
60eb755fe9 DDC-952, DDC-734 Add DQL query hint to switch associations from lazy to eager for deferred initialization optimizations. 2011-03-08 22:22:54 +01:00
Guilherme Blanco
a31289b9d7 Added support to NamedQueries through ClassMetadata. 2011-03-06 18:45:09 -03:00
Benjamin Eberlei
112f9d1480 [DDC-1050] Change refresh of collection back 2011-03-06 21:49:02 +01:00
Benjamin Eberlei
851f44a066 [DDC-952] [DDC-1050] Use ObjectHydrator inside Persisters, removing a bunch of duplicate code (step1, more necessary) 2011-03-06 21:26:54 +01:00
Benjamin Eberlei
d9c8a9eecb [DDC-952] Fix merge/rebase mistake. 2011-03-06 15:28:26 +01:00
Benjamin Eberlei
03630df20d Add support for IN(?) queries in repositories using the DBAL support for parameter lists. 2011-03-06 11:15:56 +01:00
Benjamin Eberlei
3d37e436dd DDC-952 - Refactor eager loading entities, it is only allowed for non composite primary key entities. 2011-03-05 11:09:38 +01:00
Benjamin Eberlei
32df9451fd DDC-952 - Implemented first approach for batching eager loads of ToOne associations. 2011-03-05 11:08:41 +01:00
Benjamin Eberlei
e0b835178b Bump dependency of ORM master to DBAL 2.0.2 2011-03-05 10:09:16 +01:00
Benjamin Eberlei
67ae22b911 DDC-1034 - Fix bug where callbacks where registered multiple times in inheritance hierachies. 2011-03-04 23:00:54 +01:00
Benjamin Eberlei
d58ae2ecda DDC-1056 - Fixed notice in StaticPHPDriver. 2011-03-04 22:22:07 +01:00
Benjamin Eberlei
49195ebe17 [DDC-1041] You could retrieve instances of the wrong type in inheritance hierachies because the identity map aggregates them by rootEntityName. 2011-03-03 23:11:09 +01:00
Benjamin Eberlei
b2c7a9c7fc [DDC-1050] Throw exception when trying to define inheritance information on a mapped superclass. It is not a valid use-case. 2011-03-03 22:51:53 +01:00
Benjamin Eberlei
8b9f12d924 Remove copied code of Symfony Console/Yaml and added submodules. 2011-02-28 21:51:56 +01:00
Benjamin Eberlei
c144df9be3 DDC-1033 - Fix cloning of not initialized proxies. 2011-02-26 12:47:59 +01:00
Benjamin Eberlei
1eb7f92956 DDC-1026 - Fix Result Cache Seperate chaining implementation that was wrong since DDC-892 was applied. 2011-02-26 00:39:54 +01:00
Romain Pouclet
9125413786 Fixed typo in AbstractQuery::execute() doc 2011-02-25 10:22:50 -06:00
Benjamin Eberlei
afc9495b3f Revert "Merge branch 'DDC-884'"
This reverts commit 3eea19dcfa, reversing
changes made to b13c29944b.
2011-02-21 18:52:49 +01:00
Guilherme Blanco
04ab0cd8fc [DDC-884] Allow subclassing EntityManager. 2011-02-21 00:50:51 -03:00
Guilherme Blanco
68bb0c1ae1 [DDC-1035] Fixed orphanRemoval on YAML mapping driver. 2011-02-21 00:37:32 -03:00
Guilherme Blanco
834203d868 [DDC-1012] Implemented Expr isNull and isNotNull. 2011-02-20 01:53:55 -03:00
Guilherme Blanco
505d9e2154 [DDC-1036] Modified the AggregateExpressions to support SimpleArithmeticExpression instead of StateFieldPathExpression. 2011-02-20 01:44:05 -03:00
Guilherme Blanco
70d2cbe857 [DDC-982] Implemented more unique sql table alias. 2011-02-20 01:30:58 -03:00
Guilherme Blanco
dcf358f154 Fixed some warnings from phpunit. 2011-02-19 19:50:58 -02:00
Jonathan H. Wage
328a5fe49a Updating to reverted version of common. 2011-02-16 10:25:29 -06:00
Jonathan H. Wage
839b6dd5e4 Revert "Removing old Driver interface in favor of the new one in Common\Persistence. Also changed to use fully qualified class name for interfaces in common to avoid weird aliases."
This reverts commit c988a99d55.
2011-02-16 10:24:42 -06:00
Jonathan H. Wage
c988a99d55 Removing old Driver interface in favor of the new one in Common\Persistence. Also changed to use fully qualified class name for interfaces in common to avoid weird aliases. 2011-02-16 10:06:39 -06:00
Jonathan H. Wage
a4a184b27c Implementing ClassMetadataFactory interface. 2011-02-15 21:00:48 -06:00
Jonathan H. Wage
68a4099684 Implementing initial Doctrine\Common\Persistence interfaces. 2011-02-15 20:02:45 -06:00
Benjamin Eberlei
35a152318e DDC-1030 - Fix Static Reflection with namespace levels deeper than one. 2011-02-13 10:02:18 +01:00
Benjamin Eberlei
c456f27f60 DDC-1024 - Do not generate setter/getter for inherited fields. 2011-02-12 17:40:07 +01:00
Benjamin Eberlei
4ecb582c76 Update dependencies to Common 2.0.1 and DBAL 2.0.1 2011-02-05 11:46:35 +01:00
Benjamin Eberlei
7390030854 Merge branch 'DDC-250' 2011-02-05 11:44:00 +01:00
Benjamin Eberlei
9768d08458 [DDC-250] Add tests and fix some glitches and finalized index-by patch. 2011-02-05 11:42:10 +01:00
Benjamin Eberlei
61e2cdc6b0 [DDC-1018] Bugfix: INDEX BY was not working in JOIN Declarations, only in FROM. 2011-02-05 10:04:18 +01:00
Benjamin Eberlei
4532c2255a [DDC-1018] Bugfix: INDEX BY was not working in JOIN Declarations, only in FROM. 2011-02-05 10:02:37 +01:00
Benjamin Eberlei
17c1ed948e [DDC-250] Initial untested support for @ManyToMany(indexBy) and @OneToMany(indexBy) option. 2011-02-05 09:31:40 +01:00
Benjamin Eberlei
4122abf558 DDC-1008, DDC-1002 - Create constructor and id setter if necessary. 2011-02-02 23:30:16 +01:00
Benjamin Eberlei
f9c1464879 DDC-1006, DDC-953 - Fix EntityGenerator creating empty classes 2011-02-02 23:21:42 +01:00
Benjamin Eberlei
3515df913f DDC-892 - Implement separate chaining approach for result caches to prevent hash colissions. 2011-01-23 20:54:29 +01:00
Benjamin Eberlei
05f41278a6 Significantly updated the Help of the ConvertMapping and GenerateEntities Commands to help people using and understanding their scope. Added an additional --force flag to ConvertMapping command. 2011-01-23 20:25:59 +01:00
Benjamin Eberlei
ed53f8aa74 DDC-958 - Fire postLoad event when calling refresh(). 2011-01-23 17:26:11 +01:00
Benjamin Eberlei
f1809ce180 DDC-968 - Add AbstractQuery::getHints() method 2011-01-23 16:47:07 +01:00
Benjamin Eberlei
f70ee3a038 DDC-997 - Fix bug in hydration that came up with DDC-117 2011-01-23 16:41:40 +01:00
Benjamin Eberlei
a6e63d2676 DDC-969 - Use of field instead of column when accessing a table leads to error when both differ. 2011-01-23 16:12:26 +01:00
Benjamin Eberlei
65bbdc30de DDC-978 - Fix bug where Collection gets cleared (again) when calling flush multiple times and replacing a PersistentCollection with a new one. 2011-01-23 15:40:16 +01:00
Benjamin Eberlei
fd44894e9a DDC-996 - Throw more useful exception if fieldName is empty in a mapped field or association. 2011-01-23 14:20:15 +01:00
Benjamin Eberlei
5d333045b9 DDC-960 - Bugfix in how Persisters generate Fetch last version of Entity SQL. 2011-01-23 12:48:28 +01:00
Benjamin Eberlei
03698e4068 DDC-975 - Fix notice in SchemaTool in combination with XML mapping driver. 2011-01-13 21:43:33 +01:00
Benjamin Eberlei
078e19d1c7 DDC-980 - Fix Update and Delete statements reference of the root table when doing subselects. 2011-01-13 21:16:08 +01:00
Benjamin Eberlei
3539b32629 DDC-546 - Found some more code that needs DDC-117 compliance. 2011-01-02 15:14:12 +01:00
Benjamin Eberlei
247fc43cef DDC-546 - Rename ClassMetadataInfo::FETCH_EXTRALAZY to ClassMetadataInfo::FETCH_EXTRA_LAZY 2011-01-02 15:10:47 +01:00
Benjamin Eberlei
a3cab174ca DDC-546 - Updated with support for DDC-117. 2011-01-02 14:04:52 +01:00
Benjamin Eberlei
89e7e8623c DDC-546 - Remove dynamic public property approach in PersistentCollection::count() EXTRA_LAZY. 2011-01-02 13:43:49 +01:00
Benjamin Eberlei
cbfdf61976 DDC-546 - Bugfix for PersistentCollection::count() in EXTRA LAZY special case. 2011-01-02 13:41:18 +01:00
Benjamin Eberlei
3acc05d953 DDC-546 - Fix bug in inverse many-to-many contains. 2011-01-02 13:37:29 +01:00
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
9177dc3d52 DDC-965 - Defer ID check after loadMetata event is fired. 2011-01-02 10:24:23 +01:00
Benjamin Eberlei
c1edd5848f DDC-966 - Fix NOT NULL constraint SingleTableInheritance Generation using SchemaTool. 2011-01-02 10:18:02 +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
2a005019bf DDC-117 - Add XML and YML Driver support for associated identifier. 2011-01-01 21:47:04 +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
7112b551e2 DDC-945 - Fix regression, ManyToMany unidirectional owning side assocations should be allowed. 2010-12-31 14:39:01 +01:00
Benjamin Eberlei
8658376713 DDC-929 - Fix bug with DatabaseDriver not detecting indexes that are not called primary. 2010-12-30 23:18:00 +01:00
Benjamin Eberlei
58019fbac0 DDC-961 - Bugfix with missing first letter in automatic join table names in global namespace entities. 2010-12-30 22:30:51 +01:00
Benjamin Eberlei
2d27a99a0b DDC-117 - Began to fix some issues surrounding the DDC-881 report and references to composite fk entities. 2010-12-29 01:02:21 +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
1d2b2b2c8b DDC-928 - Fix undefined variable notice. 2010-12-28 12:18:42 +01:00
Benjamin Eberlei
aa6ac3d6b0 DDC-945 - Throw exception in ClassMetadataFactory when mapped superclass has to many associations. 2010-12-28 11:59:51 +01:00
Benjamin Eberlei
fe672d2f61 DDC-617 - Throw error if selecting identification variables without picking at least one root entity alias. 2010-12-28 10:17:33 +01:00
Benjamin Eberlei
a4f88407c2 DDC-931 - SchemaTool#dropSchema() should not stop on failure of a single query (as stated in docblocks). 2010-12-22 22:04:11 +01:00
Benjamin Eberlei
e46c65db09 Fix for DDC-944 2010-12-22 00:23:22 +01:00
Benjamin Eberlei
6988b55f50 Bump Dev Version to 2.1.0-DEV 2010-12-21 16:45:50 -05:00
Benjamin Eberlei
7def30f283 Update dependencies to Common 2.0 stable and DBAL 2.0 stable. 2010-12-21 22:39:26 +01:00
Benjamin Eberlei
d87391e40c DDC-933 - Fix bug in lock sql generation of CTI classes. 2010-12-14 23:26:40 +01:00
Benjamin Eberlei
6c9eeb6127 Update Dependency to DBAL RC5 2010-12-12 16:02:46 +01:00
Benjamin Eberlei
3c0f92f4c7 Remove call to EntityManager#flush() if the unitofwork contains pending insertions. Flush should always be triggered explicitly. 2010-12-11 00:54:54 +01:00
Benjamin Eberlei
4f154b6aa1 DDC-920 - Fix bug when detaching a managed entity that is not yet in the identity map (no id). 2010-12-10 21:55:48 +01:00
Benjamin Eberlei
5e788a0b84 DDC-915 - Bugfix in Identification Variable reordering in combination with SQL Walkers. 2010-12-08 23:42:02 +01:00
Benjamin Eberlei
1daf658ec6 DDC-917 - Skip Mapped Superclasses in the Drop Sequence Loop in SchemaTool. 2010-12-08 23:36:15 +01:00
Benjamin Eberlei
aa2501eb96 DDC-917 - Bugfix with DriverChain::getAllClassNames() - It was not semantically correct and returning too many metadata. 2010-12-08 23:29:21 +01:00
Benjamin Eberlei
ef50d940de CleanUp in SchemaTool. 2010-12-08 21:21:00 +01:00
Benjamin Eberlei
9a68015ccf Bump Dev Version to 2.0.0-DEV 2010-12-04 05:29:18 -05:00
Benjamin Eberlei
72ba369dbb Revert Version to 2.0.0RC1-DEV 2010-12-04 05:28:26 -05:00
Benjamin Eberlei
5b20838aec Merge branch 'master' of git@github.com:doctrine/doctrine2 2010-12-04 05:24:41 -05:00
Benjamin Eberlei
8654d060c6 Bump Dev Version to 2.0.0-DEV 2010-12-04 05:24:00 -05:00
Benjamin Eberlei
2ba9d5a597 Update Dependency of DBAL from RC3 to RC4 2010-12-04 11:04:20 +01:00
Jonathan H. Wage
687548cde2 Merge branch 'master' of github.com:doctrine/doctrine2 2010-12-03 11:44:53 -06:00
Jonathan H. Wage
054f26c0a7 Fixing issue with change to ClassMetadataFactory constructor and ConvertMappingCommand. 2010-12-03 11:44:22 -06:00
Benjamin Eberlei
c6a6aaf493 DDC-899 - Add method to check if EntityManager is still open. 2010-12-03 17:44:24 +01:00
Benjamin Eberlei
8e4197adc5 DDC-909 - Fix Result Cache with entities as parameters. 2010-12-03 17:34:56 +01:00
Pascal Borreli
0ba9321f06 [ORM] Fixed typo 2010-11-30 02:50:34 +08:00
Fabien Potencier
892eec2f26 Update Symfony\Component\Console to latest version 2010-11-30 02:45:04 +08:00
Benjamin Eberlei
796b62cd2c DDC-897 - Fix DisconnecetdClassMetadataFactory with regards to namespace setting, now inferred from the FQCN. 2010-11-27 22:17:55 +01:00
Benjamin Eberlei
dff5dae416 DDC-897 - Make ClassMetadataFactory configurable. 2010-11-27 20:53:26 +01:00
Benjamin Eberlei
7196999b69 DDC-895 - Fix Generated XML from XMLExporter and remove silly formatting xml code used on SimpleXML by just stuffing it into DOMDocument with formatOutput=true. 2010-11-27 20:32:14 +01:00
Benjamin Eberlei
386b7e26d6 DDC-888 - Fix Warning in AnnotationsDriver when using @JoinTable without explicitly defining join- and inverse join-columns. 2010-11-27 20:05:36 +01:00
Benjamin Eberlei
51922a1ff0 DDC-855 - Fix EntityGenerator annoyance when run successive times. 2010-11-27 19:57:37 +01:00
Benjamin Eberlei
e4f74d8290 DDC-886 - Bugfix for composite identifier flag not being mapped to child classes in inheritence/mapped superclass scenarios. 2010-11-27 17:38:12 +01:00
Benjamin Eberlei
e142bd1f30 Merge and modify juokazs Sqlsrv changes 2010-11-18 23:14:07 +01:00
Benjamin Eberlei
97b80d69f1 Fix several test-issues after upgrading dependencies and a Bug in a SchemaTool and DatabaseDriver 2010-11-18 23:07:32 +01:00
Benjamin Eberlei
154176516e Upgrade Dependencies to Common RC2 and DBAL RC3 2010-11-18 23:05:34 +01:00
Benjamin Eberlei
a2cbb8f72f DDC-882 - Bugfix with typehint 2010-11-18 20:45:44 +01:00
Juozas Kaziukenas
ec50125568 Fix for foreign keys and autoincrement 2010-11-17 14:07:05 -08:00
Juozas Kaziukenas
b6da2e0e42 Proper FORM clause generation to support locking 2010-11-16 16:12:08 -08:00
Juozas Kaziukenas
494bfc8966 Fixed length, lower, upper and mod AST functions to use platform for generating SQL 2010-11-16 15:41:41 -08:00
Benjamin Eberlei
c1661dd53e DDC-511 - MappedSuperclasses specifications of inheritance mapping details make no sense and are ignored 2010-11-16 21:53:46 +01:00
Benjamin Eberlei
ae76b2ab8d DDC-853, DDC-629 - Fix drop schema always dropping everything at the cost of potential failures when dropping due to foreign keys. Added a full-database drop mode that resembles the old behavior. 2010-11-16 21:31:54 +01:00
Benjamin Eberlei
85a579febc DDC-867 - Deep clone of the QueryBuilder nested expression objects 2010-11-15 21:32:38 +01:00
Benjamin Eberlei
ece27e39c4 Merge branch 'DDC-736' 2010-11-13 09:53:00 +01:00
Benjamin Eberlei
d3d3032759 DDC-736 - Simplified patch and extended test to verify scalar results are still in order. 2010-11-13 09:52:35 +01:00
Benjamin Eberlei
ae9080aa98 DDC-873 - throw exception if trying to add @version to @id 2010-11-11 21:21:17 +01:00
Benjamin Eberlei
4ea3277c28 DDC-856 - Add default "string" type to discriminator column, throw exception on specification of a bunch of invalid types 2010-11-11 21:13:03 +01:00
Benjamin Eberlei
e4280cf82e DDC-736 - Fix ordering of identification variables in DQL parser to be by specification. 2010-11-11 21:12:09 +01: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
53e8b8f32d DDC-868 - Fix bug where a ClassMetadata instance from a STI child level is processed before the parent. 2010-11-09 22:13:35 +01:00
Benjamin Eberlei
31efc9a149 DDC-861 - Rework ProxyFactory to not use autoloader anymore 2010-11-05 22:17:05 +01:00
Benjamin Eberlei
6a904a2d67 DDC-860 - Allow access to EntityManager in loadClassMetadata event 2010-11-05 22:13:19 +01:00
Benjamin Eberlei
634aa0b291 DDC-832 - Small adjustments in the patch 2010-10-31 11:11:23 +01:00
Roman S. Borschel
4f71c3e6a3 [DDC-812] Fix uninitialized collections of managed entities not being initialized on subsequent fetch-join. 2010-10-31 11:07:26 +01:00
Benjamin Eberlei
008601f2ea DDC-758 - Respect notify change tracking. 2010-10-31 07:23:58 +01:00
Benjamin Eberlei
23795605fc DDC-758 - Fix bugs with adding and removing elements from a cascade merge Collection. This fix leads to a significant hit in merge performance of collections since they have to be initialized to the current database state, leading to an additional sql query being executed + hydration. 2010-10-31 07:06:53 +01:00
Benjamin Eberlei
97eeb437b2 DDC-832 - Fix regression introduced with last commit. 2010-10-30 19:54:36 +02:00
Benjamin Eberlei
3936f179e9 Merge branch 'DDC-832' 2010-10-30 19:34:00 +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
b5c5ec3c69 DBAL-16 - Update Symfony\Component\Console to latest version to fix upstream bug 2010-10-30 13:24:50 +02:00
Benjamin Eberlei
aa2a80f3ff DDC-787 - Fix table name casing in DatabaseDriver 2010-10-30 12:35:22 +02:00
Benjamin Eberlei
338476805d DDC-830 - Fix extended class in EntityGenerator 2010-10-30 09:16:55 +02:00
Benjamin Eberlei
35860d9a94 Fix for DDC-839: Fetch joined collections are not initialized correctly. 2010-10-29 13:14:35 +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
07016f6da5 DDC-834 - Commit fix for requesting references of classes that have subclasses. This is not possible, so we do an eager find instead. Yes this means there is yet another negative performance impact when using Inheritance STI and CTI. 2010-10-11 20:11:23 +02:00
Benjamin Eberlei
b4aabf0ba6 DDC-831 - Fix docblock in ClassMetadataInfo 2010-10-10 17:13:23 +02:00
Benjamin Eberlei
7551bb3762 Fix notice due to wrong variable reference 2010-10-06 23:09:49 +02:00
Benjamin Eberlei
394c67d482 Fix DDC-672 2010-10-06 22:18:48 +02:00
Benjamin Eberlei
b05e1ad7ad Fix typo in last patch 2010-10-01 21:05:54 +02:00
Benjamin Eberlei
638c3df3a6 DDC-822 - Fix making queries with detached entities 2010-09-30 21:59:01 +02:00
Benjamin Eberlei
de236e0456 DDC-784 - Implement doctrine CLI for Windows and refactor CLI stuff in general 2010-09-30 20:57:14 +02:00
Benjamin Eberlei
394469d4b7 DDC-525 - Single Table Inheritance fields of child entities ALWAYS have to be nullable, Schema-Tool now enforces this. 2010-09-27 23:22:52 +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
d2630ff54e DDC-819 - Fix bug with invalid parameter exception because of using isset instead of array_key_exists() 2010-09-27 21:03:12 +02:00
beberlei
039293c27a DDC-816 - Fix output of warning message in update and drop schema-tool commands 2010-09-25 12:12:19 +02:00
Benjamin Eberlei
8f80c94923 DDC-514 - Implemented default for discriminator column 2010-09-23 23:10:31 +02:00
Benjamin Eberlei
01ffa2dc9e DDC-573 - Implement resetDQLPart() and resetDQLParts() methods on QueryBuilder. 2010-09-23 22:32:23 +02:00
Benjamin Eberlei
6390653df7 Merge branch 'DDC-671' 2010-09-22 00:19:37 +02:00
Benjamin Eberlei
7dc8ef1db9 Fix DDC-671 - The sourceEntity field has to be corrected to the subclass name when copied from a mapped superclass. Otherwise DQL queries will be wrong, generating wrong table aliases. 2010-09-21 23:14:45 +02:00
Benjamin Eberlei
62a8e2aad5 Enhance Schema-Tool commands by being more aggresive on warning the user that these commands do stuff that can be potentially dangerous to the database (and its contents). 2010-09-21 22:08:29 +02:00
Benjamin Eberlei
c70f32f4c9 DDC-809 - Fix nasty issue in ObjectHydrator yielding Many-To-Many hydration problems with multi-valued collections that are join-fetched. 2010-09-21 00:32:07 +02:00
steffkes
9fa8ff86f8 show given path for MappingException::fileMappingDriversRequireConfiguredDirectoryPath 2010-09-17 11:54:31 -05:00
Guilherme Blanco
2e3c1506fb [DDC-792] Fixed issue with run-dql when using max result was triggering undefined method error. 2010-09-15 14:29:55 -03:00
Guilherme Blanco
4845745337 [DDC-802] Fixed wrong variable reference in XML exporter. 2010-09-15 14:16:53 -03:00
Benjamin Eberlei
da63bad9c8 DDC-762 - Fixed notice when mapping foreign keys to field having null values 2010-09-13 21:48:25 +02:00
Benjamin Eberlei
4727489134 DDC-761 - Fix join columns not using the same lengh, precision and scale for string and decimal types. 2010-09-12 22:34:32 +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
24c6bb3f46 Fix errors in EntityRepository docblocks 2010-09-04 12:18:02 +02:00
Roman S. Borschel
f415fa7174 Bumping dev. version. 2010-09-01 20:57:12 +02:00
Roman S. Borschel
20af9d6d9f Bumping DBAL dependency to BETA4. 2010-09-01 20:47:01 +02:00
Roman S. Borschel
207d624f5f Bumped Common dependency to RC1, fixing related issues in the test suite. 2010-09-01 20:43:23 +02:00
Benjamin Eberlei
7ff9976b3c Made using schema-tool:drop and schema-tool:update more secure by requiring the user to confirm the operation with another flag --force. 2010-08-31 23:42:27 +02:00
Benjamin Eberlei
0b5c694a7e DDC-778 - Fix AbstractQuery::__clone implementation that was wrongly implemented in DDC-770. Added more tests. 2010-08-30 20:30:11 +02:00
beberlei
33d0bb454b DDC-752 - Moved verify inheritance block behind the loadMetadata event 2010-08-28 16:41:18 +02:00
beberlei
c77a12ac83 DDC-770 - Refactored EntityGenerator Bugfix NOT to generate a use statement. Simplifies code and circumvents further problems (like importing a class from the namespace we are in) 2010-08-28 16:29:08 +02:00
beberlei
2a2936fde5 DDC-771 - Bugfix in EntityGenerator generated use statement 2010-08-28 14:54:31 +02:00
Benjamin Eberlei
5bd8ffa53c Merge master into DDC-117 2010-08-27 22:27:00 +02:00
Benjamin Eberlei
43f8398fbb DDC-770 - Commit missing changes to XmlDriver and YamlDriver 2010-08-27 22:21:18 +02:00
Benjamin Eberlei
d115f7af4f DDC-752 - Postpone Inheritance Related Metadata Validation into CMF 2010-08-27 22:14:48 +02:00
Benjamin Eberlei
797d9f1be5 Merge branch 'master' of github.com:doctrine/doctrine2 2010-08-27 21:28:46 +02:00
Benjamin Eberlei
8a21ab4755 DDC-770 - Cleanup Query instance when its cloned 2010-08-27 21:28:26 +02:00
Roman S. Borschel
506973a92e [DDC-757] Fixed. Also fixed some failing postgres tests due to changes to the default allocation size for sequences. 2010-08-26 13:47:37 +02:00
Benjamin Eberlei
241e4d2f53 DDC-737 - Implemented slice() on PersistentCollection for fowards compatibility reasons. The method will be required on Collection interface with the next Doctrine\Common release 2010-08-24 21:56:29 +02:00
Roman S. Borschel
d0717ee458 Fixed typo and simplified method as mentioned in an earlier comment. 2010-08-24 17:17:58 +02:00
Sébastien HOUZE
4a9f36800e Symfony/Components renamed into Symfony/Component 2010-08-23 12:39:30 -05:00
Benjamin Eberlei
1496250833 Merge branch 'master' into DDC-117 2010-08-15 20:17:56 +02:00
Benjamin Eberlei
2f00db08e1 Merge branch 'master' of github.com:doctrine/doctrine2 2010-08-15 20:16:28 +02:00
Benjamin Eberlei
6f4f8f8cb1 DDC-742 - Fix issue with collections that are set to fetch=EAGER not being initialized with takeSnapshot() correctly 2010-08-15 19:51:06 +02:00
Benjamin Eberlei
fb44fa6b5a Fix hydration of Assoc-Id Entities, duplicate the hydration of the foreign key once for for use with the assoc-entity as a meta-column. Added isIdentifier capabilities to meta columns. 2010-08-15 18:58:25 +02:00
Benjamin Eberlei
5799e391c6 Fix bug with updating assoc-id entities 2010-08-15 14:40:06 +02:00
Roman S. Borschel
d56d118458 Fixed field access. 2010-08-14 19:10:28 +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
Guilherme Blanco
5719f8523b [DDC-577] Updated allocationSize to 1 based on discussion on DDC-569. 2010-08-12 01:07:48 -03:00
Guilherme Blanco
496a34a4d2 [DDC-581] Implemented support to SingleValuedPathExpression to InExpression. 2010-08-12 00:16:07 -03:00
Guilherme Blanco
c3064336ab Merge branch 'master' of github.com:doctrine/doctrine2 2010-08-11 23:13:03 -03:00
Guilherme Blanco
84b9eda17c [DDC-680] Implemented support to complex mathematical expression in subselect part aswell as improved support of comparison expressions. 2010-08-11 23:12:44 -03:00
Benjamin Eberlei
98785122d3 DDC-562 - Finally able to generate Unique Constraint on @OneToOne foreign keys 2010-08-10 22:07:43 +02:00
Roman S. Borschel
ca1931de81 More association mapping doc-block updates. 2010-08-09 23:23:30 +02:00
Roman S. Borschel
575858774d Updated API doc for association mappings. 2010-08-09 23:13:34 +02:00
Roman S. Borschel
dd7be5b13a Improving API and docblocks. Removing superfluous tests. 2010-08-09 22:48:07 +02:00
Roman S. Borschel
4826739824 Simplified ClassMetadata lookup in UnitOfWork and added docblock. 2010-08-09 22:48:07 +02:00
Roman S. Borschel
5178f4b7d6 Corrected TO_ONE check just to be sure. 2010-08-09 22:48:07 +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
da809fdeda DDC-735 - Forward compatible fix for ArrayCollection::removeElement() returning the element instead of true 2010-08-09 21:26:10 +02:00
Benjamin Eberlei
8ea1d3825f DDC-735 - Fix PersistentCollection::remove() and PersistentCollection::removeElement() behaving differently with regards to orphan removal 2010-08-08 17:13:03 +02:00
Benjamin Eberlei
21753c71c9 DDC-651 - Fix short name being used instead of long-name in extends section of EntityGenerator 2010-08-08 16:43:52 +02:00
Benjamin Eberlei
ea954e8123 DDC-703 - Fixed change tracking not passed to child classes in inheritance hierachy 2010-08-08 16:15:35 +02:00
Benjamin Eberlei
37a1a35b75 Merge branch 'DDC-729' 2010-08-08 16:08:43 +02:00
Benjamin Eberlei
a705b81d9b DDC-729 - Fix issue with merging of collections leading to dereference behaviour after next flush(). Added a test for dereferencing of collections as there was none 2010-08-08 16:07:40 +02:00
Roman S. Borschel
0424d87099 [DDC-386][DDC-675] Fixed. 2010-08-08 15:03:40 +02:00
Benjamin Eberlei
7b07a17886 Merge branch 'master' into DDC-117 2010-08-08 14:07:24 +02:00
Roman S. Borschel
a1bf4dc4f6 API doc adjustments. 2010-08-08 13:10:53 +02:00
Roman S. Borschel
34262aeae1 Removed support for experimental C extension. Will be re-examined for 3.0. 2010-08-08 12:52:46 +02:00
Roman S. Borschel
3630e06b84 [DDC-522][DDC-419][DDC-383] Fixed. 2010-08-08 12:40:32 +02:00
Benjamin Eberlei
69e9fd3145 DDC-704 - Added better validation of inheritence type constructs in Xml, Annotation and Yaml Drivers 2010-08-08 12:29:14 +02:00
Benjamin Eberlei
eaa78b981b DDC-700 - Skip generation of proxy classes for Mapped superclasses 2010-08-08 12:05:21 +02:00
Benjamin Eberlei
f2715c9af4 DDC-654 - Removed unused lines of code in AST/Functions namespace 2010-08-08 11:49:39 +02:00
Benjamin Eberlei
9347263a43 DDC-709 Add further validation for @OrderBy field names on target entities 2010-08-08 11:39:44 +02:00
Benjamin Eberlei
bd28cb1b12 DDC-645 - Demoted <change-tracking-policy /> to an attribute on <entity /> to allow better validation, fixed XSD schema 2010-08-08 11:32:12 +02:00
Benjamin Eberlei
251247c16f DDC-633 - Fix Eager ManyToOne or OneToOne relations being replaced by a proxy instead. 2010-08-08 11:05:30 +02:00
Benjamin Eberlei
013262a9b7 Add support for EntityManager::remove() of full or partial association primary keys 2010-08-07 21:09:19 +02:00
Benjamin Eberlei
10f47389ae Made single identifier One-To-One + Id work also and added a test-case 2010-08-07 20:07:10 +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