1
0
mirror of synced 2024-12-13 22:56:04 +03:00
Commit Graph

400 Commits

Author SHA1 Message Date
Benjamin Eberlei
8f80c94923 DDC-514 - Implemented default for discriminator column 2010-09-23 23:10:31 +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
steffkes
9fa8ff86f8 show given path for MappingException::fileMappingDriversRequireConfiguredDirectoryPath 2010-09-17 11:54:31 -05:00
beberlei
33d0bb454b DDC-752 - Moved verify inheritance block behind the loadMetadata event 2010-08-28 16:41:18 +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
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
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
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
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
4826739824 Simplified ClassMetadata lookup in UnitOfWork and added docblock. 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
ea954e8123 DDC-703 - Fixed change tracking not passed to child classes in inheritance hierachy 2010-08-08 16:15:35 +02:00
Benjamin Eberlei
7b07a17886 Merge branch 'master' into DDC-117 2010-08-08 14:07:24 +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
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
013262a9b7 Add support for EntityManager::remove() of full or partial association primary keys 2010-08-07 21:09:19 +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
Roman S. Borschel
0c07b31136 Tweaked INSTANCE OF implementation. 2010-07-30 17:56:11 +02:00
Guilherme Blanco
c1fec32f58 [2.0][DDC-482] Added support to INSTANCE OF in DQL. 2010-07-30 01:30:02 -03:00
Benjamin Eberlei
0be6b3fd85 Clarified Exception Message 2010-07-22 22:33:37 +02:00
Benjamin Eberlei
6007084324 DDC-706 - Fix DriverChain::isTransient() to comply with interface of Driver 2010-07-21 21:20:55 +02:00
Roman S. Borschel
913e58e385 [DDC-167] Implemented. 2010-07-20 14:27:14 +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
Roman S. Borschel
88b0813536 Improved entity state detection. 2010-07-06 11:43:14 +02:00
Christian Heinrich
321fc2506d Fixed #DDC-647
Added missing length element

DBAL-647 - Added test to check for length of string type in all mapping drivers
2010-06-28 23:05:49 +02:00
Christian Heinrich
fc7224f73e Merge branch 'master' of http://github.com/doctrine/doctrine2 2010-06-22 13:53:14 +02:00
Benjamin Eberlei
1d5d092453 DDC-616 - Fixed issue appearing when running the whole test-suite against the changes in the DatabasaeDriver 2010-06-20 23:39:21 +02:00
Benjamin Eberlei
cd978fb8c9 DDC-616 Made Database Reverse Engineering a Two-Step Approach, first collect details on all tables once and try to detect which tables are many-to-many tables. Then build metadata from this information. This allows to support even many-to-many tables in reverse engineering correctly 2010-06-20 19:34:09 +02:00
Benjamin Eberlei
4705c1cb03 Merge branch 'DDC-631' 2010-06-13 23:17:09 +02:00
Benjamin Eberlei
190d115dce DDC-616 - Fix a regression with many-to-many tables introduced with the DDC-627 commit 2010-06-13 23:02:18 +02:00
Benjamin Eberlei
7018509126 Fix a bug with Table Indexes on XML Driver. Added tests for setting indexes on tables for all the mapping drivers 2010-06-13 22:59:56 +02:00
Benjamin Eberlei
c69b2d2b54 Merge branch 'DDC-627' 2010-06-13 20:10:10 +02:00
Benjamin Eberlei
434325ed4f Fixed DDC-557 - Default allocation size for sequences changed from 10 to 1. Documented in UPGRADE file 2010-06-13 20:09:59 +02:00
Benjamin Eberlei
b7db8df7ef Fixed DDC-627 and DDC-616 2010-06-13 19:36:49 +02:00
Roman S. Borschel
5d00fb764b [DDC-622] Fixed. 2010-06-07 13:10:15 +02:00
Jonathan H. Wage
35f66ab4ed Merge remote branch 'upstream/master' 2010-05-20 09:02:31 -04:00
Jonathan H. Wage
2d7f7691e9 [DDC-603] Fixing issue with reverse engineering a database where table names are all caps 2010-05-20 09:01:34 -04:00
Christian Heinrich
64309398e2 Merge commit 'upstream/master' 2010-05-20 14:41:56 +02:00
Christian Heinrich
3fc9971e98 Merge commit 'upstream/master'
Conflicts:
	lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php
2010-05-20 14:17:39 +02:00
David Abdemoulaie
5bbe6c7292 Revert "Adding missing OnFlush annotation."
This reverts commit 79d3f655ef.
2010-05-18 17:20:40 -05:00
Jonathan H. Wage
79d3f655ef Adding missing OnFlush annotation. 2010-05-18 13:19:15 -04:00
Jonathan H. Wage
5a92c0b51e Fixing issue with reverse engineering databases. 2010-05-14 12:38:42 -04:00
Jonathan H. Wage
7ac08931bc Fixing DatabaseDriver to specify nullable => true instead of notnull => false 2010-05-14 12:31:25 -04:00
Roman S. Borschel
f9b53c6b5c Fixed #DDC-580
Conflicts:

	lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php
2010-05-11 00:03:09 +02:00
Christian Heinrich
b63afb6ce4 Fixed #DDC-580 2010-05-10 16:41:42 +02:00
Roman S. Borschel
59d4e0c8e7 [DDC-481] Fixed. 2010-05-08 17:01:20 +02:00
Roman S. Borschel
561236bd56 [DDC-576] Fixed. 2010-05-08 14:08:18 +02:00
Jonathan H. Wage
3001d26ad4 Fixing typo/mistake. Test coming soon. 2010-05-05 15:14:48 -04:00
Benjamin Eberlei
6c7aaa727c Added tests for 41e830ca68, thereby finding two issues with XML and YAML Driver handling of Sequence-Generator 2010-05-01 03:28:18 +02:00
Benjamin Eberlei
9cee8bf890 Merge remote branch 'dc2master/master' 2010-05-01 03:12:27 +02:00
Jonathan H. Wage
94928c5dd8 [DDC-552] Fixing issue with getReflectionClass() not existing on ClassMetadataInfo when it is required by AnnotationDriver 2010-04-30 12:27:52 -04:00
Roman S. Borschel
39a6c01978 Merge commit 'upstream/master' 2010-04-30 17:31:53 +02:00
Roman S. Borschel
db2be55e27 [DDC-561] Fixed. 2010-04-30 17:30:27 +02:00
Jonathan H. Wage
41e830ca68 Fixing sequence-generate in XmlDriver 2010-04-29 08:13:02 -04:00
Benjamin Eberlei
f38584a51e DDC-545 - Add unittest for all drivers uniqueConstraint capabilities, fix bug in XML Driver that disallowed using them 2010-04-28 20:27:53 +02:00
Jonathan H. Wage
6bda2b44fe Renaming PhpDriver to PHPDriver 2010-04-26 14:12:36 +02:00
Roman S. Borschel
d1d1cecc06 Restored missing files. 2010-04-26 14:12:20 +02:00
Roman S. Borschel
bff4f49b7a Merge commit 'upstream/master'
Conflicts:
	lib/Doctrine/Common/Annotations/AnnotationReader.php
	lib/Doctrine/Common/Annotations/Parser.php
2010-04-26 13:17:36 +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
Jonathan H. Wage
27a0058b89 Initial entry of StaticPHPDriver 2010-04-23 16:16:16 -04:00
Jonathan H. Wage
6d29f05d3a Renaming PhpDriver to PHPDriver 2010-04-23 14:37:29 -04:00
Roman S. Borschel
4b71afe7c2 Improving metadata caching performance by only serializing what is absolutely necessary. 2010-04-18 22:47:03 +02:00
Roman S. Borschel
f3c672a2e5 Merged from upstream/master. 2010-04-14 17:21:15 +02:00
Roman S. Borschel
d4232d906e [DDC-388] Fixed. 2010-04-14 17:07:08 +02:00
Roman S. Borschel
7fefe3f4b4 Merge commit 'upstream/master' 2010-04-14 10:50:37 +02:00
Roman S. Borschel
4106002344 Small refactorings. 2010-04-14 10:46:35 +02:00
Jonathan H. Wage
44e656dc0a Adding description to _getParentClasses() 2010-04-13 18:24:48 -04:00
Jonathan H. Wage
5cfe9e1d94 Introducing DisconnectedClassMetadataFactory that will replace the need for ClassMetadataReader 2010-04-13 18:20:41 -04:00
Jonathan H. Wage
5442a32db8 Fixing incorrect exception method used 2010-04-13 14:09:39 -04:00
Jonathan H. Wage
071adf68cd Fixing tabs in ClassMetadata class 2010-04-13 14:09:11 -04:00
Roman S. Borschel
6d08164162 Merge commit 'upstream/master' 2010-04-13 00:50:12 +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
45cd2afd27 DDC-510 - Simplified Condition to check if Paths are set in AnnotationDriver 2010-04-11 10:52:53 +02:00
Benjamin Eberlei
6e5b1bbe60 DDC-510 - Refactored Metadata Driver to be an required option, even for Annotations - allowing to use the specified paths in ORM Tooling Commands 2010-04-10 17:35:18 +02:00
Roman S. Borschel
7cc56c45d3 [DDC-193] Fixed. 2010-04-10 00:00:36 +02:00
guilhermeblanco
511bf2248e [2.0] Fixed and added some missing/wrong docblocks. Renamed Assigned to AssignedGenerator as scheduled to be renamed. 2010-03-30 21:14:17 +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
beberlei
6b86c97f0a [2.0] DDC-457 - Fix invalid reference to MappingException in Xml and Yml Drivers 2010-03-26 18:29:20 +00:00
beberlei
f78ac41cd8 [2.0] DDC-239 - Added several new mapping validations for duplicate association/field and or column name definitions, and in combination with the discriminator column name. 2010-03-20 19:19:12 +00:00
beberlei
1ddebef8a4 [2.0] DDC-318 - Fixed idempotency issues with AnnotationDriver::getAllClassNames() even across multiple instances using the same metadata paths. 2010-03-18 23:04:21 +00:00
romanb
cc9b0ff63b [2.0][DDC-433] Fixed typo. 2010-03-18 13:46:25 +00:00
romanb
9bb25925c0 [2.0][DDC-433] Fixed. 2010-03-18 11:53:26 +00:00
jwage
770d00abe9 [2.0] Improving test coverage for mapping exporters as well as adding missing functionality 2010-03-17 21:25:19 +00:00
jwage
e06f7c981d [2.0] Updating Symfony Yaml component to PHP 5.3 version 2010-03-16 23:03:29 +00:00
jwage
a25c704246 [2.0] Fixing PhpDriver and covering it with tests 2010-03-16 22:41:09 +00:00
guilhermeblanco
0fde94ddcf [2.0] Fixed custom functions support that was failing to be processed. Also fixed syntax error of Function support. 2010-03-16 14:01:54 +00:00
beberlei
ec4bd256d5 [2.0] DDC-412 - Fixed YAML Driver not allowing multiple lifecycle callbacks per event. Backwards-incompatible change 2010-03-15 19:29:07 +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
guilhermeblanco
0af8b66599 [2.0][DDC-389] Fixed the PHPDriver that was causing a fatal error when classes uses inheritance type join. Thanks Tiago Ferreira for report and patch. 2010-03-03 17:46:21 +00:00
guilhermeblanco
3eff1d1c5b [2.0] Fixed issue with classmetadata cache that was saving the entire inheritance on the same cacheKey. 2010-03-03 14:39:49 +00:00
guilhermeblanco
dc1f61c0e3 [2.0] Fixed issue with classmetadata cache that was saving the entire inheritance on the same cacheKey. 2010-03-03 14:38:39 +00:00
guilhermeblanco
0cbc9aa672 [2.0][DDC-387] Fixed wrong variable name in MappingException. Thanks Christian for report 2010-03-03 01:38:21 +00:00
guilhermeblanco
4ac39f0cbd [2.0][DDC-379][DDC-384] Implemented Entity namespace alias support. 2010-03-03 01:30:00 +00:00
romanb
9427a85e4e [2.0] Fixed missing argument in AbstractFileDriver. 2010-03-01 22:23:39 +00:00
guilhermeblanco
a56689be67 [2.0] Reverted wrong changeset of commit related to 7246 2010-03-01 04:23:23 +00:00
guilhermeblanco
fc5960c489 [2.0][DDC-265] Partial support to inheritanceType in AnnotationExporter. Still needs to add the discriminator column. 2010-03-01 04:03:44 +00:00
beberlei
eb00a3b817 [2.0] DDC-195 - Refactored Mapping Syntax again to be arrays in all annotations, xml and yaml drivers instead of parsing the fields in the AssociationMapping implementations. 2010-02-26 21:26:06 +00:00
jwage
7c81b0b003 [2.0] Adding support for entity aliases in the query language 2010-02-26 18:11:53 +00:00
jwage
c8ef304bcc [2.0] Adding getDrivers() method to DriverChain 2010-02-26 01:27:10 +00:00
beberlei
b7de1ed115 [2.0] Fixed missing parameter in MappingException::mappingFileNotFound 2010-02-25 21:36:48 +00:00
beberlei
bbda52a448 [2.0] DDC-376 - Fix in XML Mapping Driver 'inheritance-type' attribute. 2010-02-25 21:16:05 +00:00
beberlei
43ecaf54a2 [2.0] DDC-374 - Implement and tested DriverChain Mapping Adapter 2010-02-25 19:58:39 +00:00
jwage
fcd623e8ef [2.0] Adding DriverChain mapping driver type to allow you to configure drivers to use for certain entity namespaces 2010-02-25 19:33:21 +00:00
beberlei
cbd8133308 [2.0] DDC-367 - Fixed Bug with <discriminator-map /> XML Driver Parsing 2010-02-24 19:31:53 +00:00
romanb
4685a9ab6a [2.0][DDC-355] Fixed. Patch provided by Christian Heinrich. 2010-02-23 14:02:31 +00:00
romanb
22fce635c0 [2.0][DDC-339][DDC-340] Fixed. 2010-02-20 18:27:05 +00:00
romanb
639718e95c [2.0][DDC-335][DDC-347][DDC-317] Fixed. Also prepared DQL for CASE/COALESCE/NULLIF support. 2010-02-19 21:28:17 +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
beberlei
ab3a6cc16e [2.0] DDC-336 - Support specification of an OrderBy SQL snippet in OneToMany and ManyToMany Associations in Annotation, XML and YAML Drivers 2010-02-14 19:38:22 +00:00
beberlei
49d2dd9bf2 [2.0] DDC-329 - Allow Reverse Engineering with multiple column foreign keys 2010-02-13 22:28:33 +00:00
beberlei
6271245831 [2.0] DDC-318 - Fix successive calls to AnnotationDriver::getAllClassNames() 2010-02-11 22:47:59 +00:00
romanb
ae6e597dca [2.0][DDC-311] Fixed. 2010-02-10 22:17:43 +00:00
romanb
ca23555c3e [2.0][DDC-79][DDC-261] Fixed. Also fixed support for deleting objects by reference (getReference() + remove() + flush()) to effectively delete objects without loading them. 2010-02-10 10:47:42 +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
ac4c33c371 [2.0] DDC-214, DDC-303, DDC-304 - Fix several errors with Schema Inference from Database and Metadata and Comparisons, aswell as related bugs in DatabaseDriver. DDC-305 - Abstracted TRUNCATE command for all platforms. 2010-02-07 12:36:30 +00:00
beberlei
7cf8d1ae52 [2.0] DDC-268 Added missing duplicateAssociationMapping() method to MappingException 2010-02-02 21:46:39 +00:00
beberlei
703ba989be [2.0] DDC-268 - Exchanged DoctrineException for MappingException and added missing exception method (thanks to Christian Heinrich for the patch) 2010-02-02 21:17:00 +00:00
beberlei
ee9aa005b2 [2.0] DDC-271 - Add columnDefinition for Join-Column in Annotation, XML and YAML driver, updated SchemaTool to use Join Column definition instead of using the column's columnDefinition if specified. Refactored MappingDriverTest to allow for feature specific test-cases instead of one large assertion block. Fixed typos in XmlDriver - Updated doctrine-mapping.xsd Schema File 2010-02-01 21:48:27 +00:00
guilhermeblanco
f6d17b79d8 [2.0][DDC-286][DDC-287] Fixed missing method and casting. Thanks Hannes for reporting and patch. 2010-01-30 21:11:13 +00:00
romanb
94d41dfbdc [2.0][DDC-279] Fixed. 2010-01-29 21:24:29 +00:00
guilhermeblanco
a8bcf0f7ac [2.0][DDC-281] Fixes for Mapping drivers 2010-01-28 19:47:11 +00:00
guilhermeblanco
443a20569b [2.0][DDC-281] Fixes for Mapping drivers 2010-01-28 19:38:16 +00:00
guilhermeblanco
14ec40e1e6 [2.0][DDC-281] Fixed several issues with mapping drivers and loading of mapping files. 2010-01-28 12:46:12 +00:00
beberlei
a652bc69b3 [2.0] DDC-247 - Fix bug with nullable not working in XML field and join-column properties. 2010-01-27 23:00:55 +00:00
guilhermeblanco
9d7bd7336c [2.0] Fixing issue with multiple class directory loading in Annotations driver 2010-01-27 22:04:37 +00:00
beberlei
4e3edec899 [2.0] Fix typo in variable name of AbstractFileDriver::getAllClassNames() 2010-01-27 19:21:07 +00:00
beberlei
eebb7c7e18 [2.0] DDC-277 - Remove support "default" option in metadata mappings, but keep it as a concept in DBAL layer to support for example versionable entities. 2010-01-26 21:45:20 +00:00
beberlei
c0d023c511 [2.0] Removed accidentlly committed .orig patch files. 2010-01-22 16:29:48 +00:00
romanb
4bec3e2c49 [2.0][DDC-263] Fixed. Patch provided by Christian Heinrich. 2010-01-22 15:10:13 +00:00
romanb
c4549c4541 [2.0][DDC-260] Fixed/Corrected patch. 2010-01-21 22:26:36 +00:00
romanb
572f728153 [2.0][DDC-260] Fixed/Corrected patch. 2010-01-21 22:25:42 +00:00
guilhermeblanco
37cb86fe81 [2.0][DDC-260] Added support for better error reporting on ClassMetadata 2010-01-21 19:52:17 +00:00
beberlei
9cd0379f53 [2.0] DDC-200 Implemented support for @columnDefinition - even with support to pass the definition to join columns if necessary for relations. 2010-01-20 22:35:18 +00:00
romanb
46ed63d131 [2.0][DDC-251] Fixed. 2010-01-18 12:50:39 +00:00
romanb
0a9876b2e8 [2.0][DDC-248] Fixed and some more unrelated tests. 2010-01-15 13:33:42 +00:00
guilhermeblanco
2ff76e44c0 [2.0][DDC-254] Improved MappingException thrown on missing required configuration of Many-Many mapping 2010-01-14 15:48:42 +00:00
romanb
674e9beea2 [2.0][DDC-242][DDC-243] Fixed. 2010-01-06 17:18:10 +00:00
guilhermeblanco
9ad13c4730 [2.0][DDC-236] Enhanced unique constraints to support names. Fixed general issues on XML and YAML exporters. Fixed issues on XML, YAML, Doctrine 1.X and Annotation drivers. 2010-01-06 13:23:56 +00:00
romanb
60b9fb7c5b [2.0] Some small cleanups. 2009-12-21 11:06:27 +00:00
romanb
d54a3ad7d0 [2.0][DDC-215] Fixed. 2009-12-19 13:52:36 +00:00