Hugo Hamon
68806aa8c6
[Tools] removed unused local variable $idHash in DebugUnitOfWorkListener class and renamed AS keywords to as.
2012-03-24 11:07:41 +01:00
Hugo Hamon
aca1470e6b
[Tools] removed unused local variable $cm in InfoCommand class.
2012-03-24 11:07:40 +01:00
Rivaros
df82b6060b
Convention fixes
2012-03-14 21:38:43 +01:00
Rivaros
06eed4cfda
Primary Keys as Foreign Keys - reverse engineering
2012-03-14 21:38:33 +01:00
Sander Marechal
53ff312936
Renamed *SqlWalker to *OutputWalker
2012-03-12 08:33:35 +01:00
Sander Marechal
ad871e8b26
Cleaned up use
statements
2012-03-08 09:41:35 +01:00
Sander Marechal
d2501a9e4a
Throw exception when using the CountWalker with a HAVING query
2012-03-07 08:42:09 +01:00
Sander Marechal
edd5d14b06
Pagination using SQL walkers
...
A CountSqlWalker and LimitSubquerySqlWalker have been implemented. By
default the Paginator will use these SQL walkers. When a query already
uses custom SQL walkers, the Paginator will fall back to the existing
TreeWalker implementations. Improvements:
* Support for more complex DQL queries using named mixed results with
GROUP BY and HAVING. For example:
SELECT g, u, COUNT(u.id) AS userCount
FROM Entity\Group g LEFT JOIN g.users u
GROUP BY g.id
HAVING userCount > 0
* Support for entities with composite primary keys in the CountSqlWalker
and LimitSubquerySqlWalker. Only the WhereInWalker still needs to be
updated for full composite primary key support. But someone smarter
than me needs to look at that and figure out how to build a WHERE IN
query that can select rows based on multiple columns.
2012-03-06 16:24:44 +01:00
Brikou CARRE
e130df4f42
According to "Doctrine's implicit CS" and "Symfony's implicit CS" an empty line added to the end of the file (...same tweaks like the one pushed for the entity generator)
2012-03-04 09:43:52 +01:00
Brikou CARRE
cb2c71b16a
According to "Doctrine's implicit CS" and "Symfony's implicit CS" an empty line added to the end of the file
2012-03-02 09:57:24 +01:00
Guilherme Blanco
48dcee9d60
[DDC-1616] Removed non-SQL message and improve exportability of SchemaTool CreateCommand.
2012-02-22 01:19:01 -05:00
Benjamin Eberlei
dbd646b2de
[DDC-1649] Fix notice by last commit.
2012-02-20 15:55:19 +01:00
Benjamin Eberlei
502585bf40
[DDC-1649] Add additional check for not allowed mapping of dependent association keys.
2012-02-20 15:55:18 +01:00
Benjamin Eberlei
5d352389b7
Merge pull request #270 from bmichotte/master
...
Fluent interface and relations
2012-02-20 00:24:07 -08:00
Asmir Mustafic
d1b2dabc0f
nullable assoc
2012-02-15 12:43:55 +01:00
Fabio B. Silva
5d01123413
Fix DDC-807, DDC-553
2012-02-13 23:22:49 -02:00
Benjamin Eberlei
3c4d2cd890
Merge pull request #253 from mrmkrs/protectedfields
...
enable set visibilty of class fields in EntityGenerator
2012-01-28 13:13:37 -08:00
Benjamin Eberlei
120bad8a2c
Merge pull request #262 from wrightlabs/patch-1
...
added optional Command array as parameter for run method
2012-01-28 13:12:50 -08:00
Benjamin Eberlei
359a9c015b
Merge pull request #196 from goetas/manyidx
...
Added some improvments for generated XML
2012-01-28 13:11:22 -08:00
Benjamin Eberlei
2ce705ceb3
Merge pull request #272 from jsor/table_options
...
Implement custom options on table level and complete column options implementation
2012-01-28 12:56:19 -08:00
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
Jan Sorgalla
d68fcd8bd2
Implement custom options on table level
2012-01-26 15:05:26 +01:00
Benjamin Michotte
1d2f46bda7
Add fluent code for relations
2012-01-24 19:08:25 +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
John Wright
543c73bc05
added optional command array as parameter for run method
2012-01-16 21:01:44 -08: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
Marcel
f76d327413
use self:: instead of EntityGenerator::
2012-01-13 14:43:13 +01:00
Marcel
72d5d0281a
use !== to check field visibility
...
use class constants
2012-01-13 14:34:34 +01:00
Marcel
69f0d70a98
fix if coding standard
...
fix typo
2012-01-13 14:14:28 +01:00
Marcel
f26d43b3ea
remove whitespace
...
tabs -> spaces
added class constants
updated phpdoc
2012-01-13 11:24:35 +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
Marcel Raaijmakers
facd64ef2f
enable set visibilty of class fields in EntityGenerator
2012-01-06 16:58:27 +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
Asmir Mustafic
289c186de5
orphanRemoval default is false
2011-12-16 16:16:52 +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