Benjamin Eberlei
551df4af52
[DDC-1617] Implement support for Generating Unique Constraints/Indexes in @Table annotation of EntityGenerator.
2012-01-28 11:16:36 +01:00
Sander Marechal
5dc0081f56
Add support for paginating WHERE NOT ... queries
...
The Pagination tool throws an exception on a DQL query like:
SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)
This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.
2012-01-23 15:42:41 +01:00
Benjamin Eberlei
775071e1ff
[DDC-1613] Merge KnpLabs/Pagerfanta Pagination into a Doctrine\ORM\Tools\Pagination namespace. Thanks to @hobodave, pablo and the knplabs team for developing and maintaining this code.
2012-01-22 13:35:06 +01:00
Benjamin Eberlei
0f3abde413
[DBAL-204] Filter namespaced assets if Schemas/Emulation is not supported.
2012-01-21 11:31:54 +01:00
armetiz
21c9be74c9
Update lib/Doctrine/ORM/Tools/SchemaTool.php
2012-01-16 13:54:04 +01:00
armetiz
56c49fedd2
Unique key name isn't correctly set - DDC-1603
2012-01-16 10:30:15 +01:00
Benjamin Eberlei
27451a59d4
Merge pull request #254 from jsor/custom_options
...
Pass options attribute in @Column annotation to Schema\Column's customSchemaOptions
2012-01-15 09:06:46 -08:00
Benjamin Eberlei
106f10513f
[DDC-1601] Fix bugs in SchemaValidator, using all modelsets as testdata for a large test
2012-01-15 11:27:52 +01:00
Benjamin Eberlei
c1dae35a24
Fix notice when using regenerate if exists and file is not new.
2012-01-12 11:20:49 +01:00
jsor
615e22073f
Pass options attribute in @Column annotation to Schema\Column's customSchemaOptions
2012-01-11 15:58:57 +01:00
Benjamin Eberlei
76e4f5a80b
DCOM-93 - Removed reflection dependency from ClassMetadata completly, moving all the code into ClassMetadataInfo for BC reasons.
2012-01-02 21:32:18 +01:00
Benjamin Eberlei
ea2d4e4282
DCOM-93 - Add ClassMetadataFactory#wakeupReflection implementation
2012-01-02 15:46:20 +01:00
holtkamp
21cfe4ba9f
Allow ExporterDrivers that implement the exportClassMetadata() function to return FALSE when no content is available/needs to be written to a file by the AbstractExporter, preventing empty files to be generated foreach processed ClassMetadataInfo instance.
2011-12-28 09:03:00 +01:00
Benjamin Eberlei
cd6131c9b8
Remove all trailing whitespaces
2011-12-19 22:56:19 +01:00
Benjamin Eberlei
40800bd3cd
DDC-1530 - Validate field types in SchemaValidator
2011-12-19 10:11:11 +01:00
Benjamin Eberlei
072094f722
DDC-1368 - Fix tests
2011-12-17 23:38:39 +01:00
Benjamin Eberlei
170271fd72
DDC-1368 - Improve schema validator
2011-12-17 23:27:39 +01:00
Evan Coury
36a47e391c
DDC-1544 - Add unit test and assertions for ResolveTargetEntityListener
2011-12-17 15:00:05 -07:00
Benjamin Eberlei
267ce7df88
DDC-1544 - Add ResolveTargetEntityListener
2011-12-17 19:35:10 +01:00
Andrew Mackrodt
2fdb55a878
Added absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:26 +00:00
Guilherme Blanco
2f6b930a8d
Implemented missing support in CollectionMemberComparison. Removed old todo in ArrayHydrator. Finished implementation of IdentificationVariable in ArithmeticPrimary.
2011-12-03 15:19:21 -05:00
Benjamin Eberlei
0d4e0626cf
Merge pull request #158 from goetas/cascade-all
...
Collapsed cascade elements, if cascade-all.
2011-11-18 06:49:40 -08:00
Benjamin Eberlei
64b649ef61
Merge pull request #160 from goetas/generation
...
Allow to unset one-to-one relation with generated class
2011-11-13 07:53:58 -08:00
Benjamin Eberlei
f7c46c7b33
DDC-1491 - Fix Schema Validator bug
2011-11-13 15:45:06 +01:00
Benjamin Eberlei
c965d231b1
Rename method and refactor code a bit
2011-10-31 23:21:11 +01:00
Benjamin Eberlei
e31e164896
DBAL-1420 - Use safe mode for schema validation. Dropping stuff isnt necessary here.
2011-10-31 23:12:52 +01:00
Benjamin Eberlei
11f82bd41f
DDC-1439 - Fix validate mapping some more
2011-10-31 20:49:59 +01:00
Benjamin Eberlei
64d405f7dd
Merge origin/master into DDC-1384
2011-10-30 12:12:18 +01:00
Benjamin Eberlei
30731e0727
DDC-1384 - Fix all tests on Oracle
2011-10-29 23:58:09 +02:00
Asmir Mustafic
d09285e9d3
Collapse cascade all test (YAML too)
2011-10-26 10:59:15 +02:00
Asmir Mustafic
7efd615b8c
Coding standards
2011-10-24 12:00:11 +02:00
Asmir Mustafic
5f80b57554
Improoved coding standards
2011-10-24 10:19:01 +02:00
Asmir Mustafic
1b83fcc46d
Coding standards
2011-10-24 09:20:24 +02:00
Asmir Mustafic
d4059b88ca
Nullable relations, fixing join condition
2011-10-21 15:30:21 +02:00
Asmir Mustafic
fe84a61d0b
Better code generation when association is nullable
2011-10-21 09:38:37 +02:00
Asmir Mustafic
596ba3d5b1
Collection inteface instead of ArrayCollection
2011-10-19 15:04:16 +02:00
Asmir Mustafic
be3adfb35e
With TO_MANY relations, class filed is instanceof ArrayCollection,
...
instead of targetEntity class type.
2011-10-19 09:25:40 +02:00
Asmir Mustafic
8f092812c4
Spaces
2011-10-19 09:17:30 +02:00
Asmir Mustafic
9c1202a766
Added <variableDefault> on generated class.
...
This allow to unset many-to-one and one-to-one relations
Example: $user->setGroup(null);
2011-10-19 09:15:41 +02:00
Asmir Mustafic
e19fd756cb
Better indentation for generated class
2011-10-19 09:07:18 +02:00
Asmir Mustafic
97321a1ff2
Collapsed cascade elements, if cascade-all.
...
(better readability for generated xml)
2011-10-18 16:18:25 +02:00
Asmir Mustafic
0d57ffbc3b
Set association-key attribute in xml mapping
2011-10-18 15:48:56 +02:00
Benjamin Eberlei
7b71b3284d
Fix failing test due to EntityGenerator assuming beginning with 2.2 the AnnotationReader is always used. There is still the simple reader though.
2011-10-15 20:41:07 +02:00
Benjamin Eberlei
75e1d17d18
Merge branch 'ValidateJoinColumnsMatching'
2011-10-15 20:33:46 +02:00
Benjamin Eberlei
a82bffbfc9
Make SchemaValidator catch errors such as very invalid schema using only part of the primary key for join columns
2011-10-15 20:31:56 +02:00
Benjamin Eberlei
1f59001ff7
Merge pull request #130 from bmichotte/master
...
Fluent entity (master)
2011-10-15 11:01:19 -07:00
Benjamin Eberlei
52cea01563
DDC-1411 - Fixed onDelete handling in EntityGenerator
2011-10-15 17:53:04 +02:00
Christophe Coevoet
c7c875a063
Fixed the version check in the entity generator
...
The 3.0.x branch of Common has been merged to become the incoming
2.2 release.
2011-10-10 19:20:01 +02:00
Guilherme Blanco
ebe933810e
Implemented HIDDEN support in DQL. Fixes DDC-1363.
2011-10-03 02:07:07 -03:00
Guilherme Blanco
8efae0b232
Fixes DDC-1396.
2011-10-03 01:30:20 -03:00