Marco Pivetta
e2c1d7c38a
Removing deprecated StaticPHPDriver and PHPDriver
...
modifying tests so that the new implementation in Doctrine\Common is referenced
2012-07-10 02:31:30 +02:00
Benjamin Eberlei
5cdb0ae8be
[DDC-1907] Add generation of remove method for collections
2012-07-04 21:04:47 +02:00
Benjamin Eberlei
1f2ce21b56
[DDC-1497] Change EntityGenerator add method generation for collections.
2012-05-27 20:31:01 +02:00
Benjamin Eberlei
f55b5411c8
[DDC-1791] Fix OutputWalker Pagination on Oracle
2012-05-27 13:22:48 +02:00
Benjamin Eberlei
548c997f7b
[DDC-1799] Fix bug in YamlExporter using OneToOne instead of ManyToOne
2012-05-27 09:57:46 +02:00
Fabio B. Silva
e9974911fe
fix tests
2012-05-04 21:13:20 -03:00
Fabio B. Silva
67f0722211
change test to uses data provider
2012-05-04 21:13:19 -03:00
Fabio B. Silva
790d98133c
fix DDC-1694
2012-05-04 21:11:51 -03:00
Fabio B. Silva
9b02745cd8
Fix DDC-1784
2012-04-18 20:39:21 -03:00
Sander Marechal
43f97a9abc
CountOutputWalker does not need CountWalker::HINT_DISTINCT
2012-03-12 08:39:28 +01:00
Sander Marechal
53ff312936
Renamed *SqlWalker to *OutputWalker
2012-03-12 08:33:35 +01:00
Sander Marechal
c9d962b12a
Fix indentation
2012-03-07 08:57:51 +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
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
299def4712
DDC-1641 - Fix test producing failure when skipped.
2012-02-10 21:39:17 +01: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
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
Sander Marechal
c6c82efe07
Fixed indentation
2012-01-23 16:11:30 +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
Guilherme Blanco
0f07044836
Added coverage to DDC-1587.
2012-01-16 22:31:14 -05: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
9950af2f58
[DDC-1601] Fix failing test and remove unused code
2012-01-15 12:12:08 +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
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
f6f2acad4c
Merge Improve Error Messages into 2.2
2011-12-21 23:56:25 +01:00
Benjamin Eberlei
cd6131c9b8
Remove all trailing whitespaces
2011-12-19 22:56:19 +01:00
Benjamin Eberlei
9cd8f85a8c
DDC-1456 - Disallow setting id generators on composite identifiers.
2011-12-18 00:32:35 +01:00
Evan Coury
36a47e391c
DDC-1544 - Add unit test and assertions for ResolveTargetEntityListener
2011-12-17 15:00:05 -07: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
11f82bd41f
DDC-1439 - Fix validate mapping some more
2011-10-31 20:49:59 +01:00
Asmir Mustafic
d09285e9d3
Collapse cascade all test (YAML too)
2011-10-26 10:59:15 +02:00
Asmir Mustafic
035ca8e500
Collapse cascade all test
2011-10-26 10:14:59 +02:00
Asmir Mustafic
cb76222e63
Collapse cascade persist, remove, refresh, detach, merge into
...
cascade-all (implemented currently only for XML annotation)
2011-10-24 09:54:31 +02:00
Benjamin Eberlei
dba8360166
Merge master into ImproveErrorMessages
2011-10-22 11:06:51 +02:00
Benjamin Eberlei
5c78ecaca1
Fix tests in EntityGenerator due to Annotation prefixes
2011-10-15 20:44:25 +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
cb28bfd484
Improve Error Messages in ClassMetadata and UnitOfWork
2011-10-15 17:38:55 +02:00
Guilherme Blanco
2cfc61db84
Fixed bug with orphanRemoval not removing associated Entity on OneToMany and OneToOne relationships. As defined in ClassMatedataInfo, in these situations, when orphanRemoval=true, cascade=remove is implicit. This fixes DDC-1321.
2011-09-06 01:58:16 -03:00
Benjamin Eberlei
8b38e68e23
DDC-1350 - Bugfixes in Doctrine\ORM\Tools\Setup
2011-08-30 20:40:26 +02:00
kwiateusz
a47af43bc1
Last change from assertTrue($a instanceof $b) to assertInstanceOf
2011-07-27 08:54:06 +02:00
Benjamin Eberlei
57cfcfd20e
Merge pull request #79 from mridgway/DDC-725
...
[DDC-725] Removed onUpdate property on join columns
2011-07-26 14:14:30 -07:00
Benjamin Eberlei
4796452b07
DDC-1268 - Singular add*() method name through using targetEntity shortname
2011-07-12 23:25:15 +02:00
Peter Kruithof
9395eeed3d
Changed order of elements
2011-06-29 03:15:05 -07:00