Fabio B. Silva
df0632258a
Order by clause support case expressions
2012-03-12 20:26:38 -03:00
Fabio B. Silva
ce9643bce1
Order by clause support functions
2012-03-12 20:26:38 -03:00
Klein Florian
ac1ffaf7e9
make merge copy non persited properties too
2012-03-12 23:18:56 +01:00
Benjamin Eberlei
d57159ad54
[DDC-451] Add test for UUIDGenerator
2012-03-12 12:48:14 +01:00
Benjamin Eberlei
3788d0e815
Merge pull request #298 from sandermarechal/paginate-sql-walkers
...
Pagination using SQL walkers
2012-03-12 01:04:34 -07: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
Guilherme Blanco
7954386705
DDC-1696 Allowed Strings to be used inside of Case expressions. It seems this fixes other misterious use cases not yet identified by us.
2012-03-11 21:14:08 -04:00
Benjamin Eberlei
0a78f7bc11
[DDC-1695] Fix bug in SQL Walker array hydration with escaped fields.
2012-03-11 23:27:51 +01:00
Alexander
3faa1a78c2
[DDC-1426] sizeof() -> count() + added tests
2012-03-11 22:32:30 +01:00
Benjamin Eberlei
79d9c07652
[DDC-1693] Fix fatal errors in DQL when using Optimistic or None lock modes. Added tests.
2012-03-11 22:29:20 +01:00
Sander Marechal
47964a1605
Use assertCount
for simpler tests
2012-03-08 09:48:41 +01:00
Sander Marechal
c9d962b12a
Fix indentation
2012-03-07 08:57:51 +01:00
Sander Marechal
2f817b30c3
Use a dataProvider to test both TreeWalker and SqlWalker pagination
2012-03-07 08:52:00 +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
Guilherme Blanco
f6a61b133e
Fixed roken MySQL test.
2012-03-05 01:54:43 -05:00
Benjamin Eberlei
9cddaf3075
Merge pull request #256 from F5/many_to_many_listeners
...
When using a ManyToMany relationship no listener is notified about any change to the owning entity
2012-03-03 13:13:09 -08:00
Benjamin Eberlei
1bbd52b8ee
[DDC-1652] Fix SqlWalker to include foreign key identifiers in SQL SELECT statement no matter what the meta column setting is suggesting.
2012-02-20 17:48:34 +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
68436fee75
[DDC-1654] Add support for orphanRemoval on ManyToMany associations. This only makes sense when ManyToMany is used as uni-directional OneToMany association with join table. The join column has a unique constraint on it to enforce this on the DB level, but we dont validate that this actually happens. Foreign Key constraints help prevent issues and notify developers early if they use it wrong.
2012-02-20 10:33:16 +01:00
Benjamin Eberlei
35764c2402
[DDC-1659] Remove read only marker when clearing entities.
2012-02-20 09:36:35 +01:00
Benjamin Eberlei
bd1bc07270
[DDC-1651] Convert entities as parameters early in setParameter() to avoid them being part of result cache strings, which causes non-uniqueness.
2012-02-18 16:07:55 +01:00
Benjamin Eberlei
9fc1d85e8d
[DDC-1643] Fix bugs when cloning PersistentCollection and re-using it.
2012-02-18 00:42:21 +01:00
Benjamin Eberlei
d995c6dbdc
[DDC-1655][DDC-1650][DDC-1556] Fix issues with @postLoad Callback being not fired, or fired multiple times.
2012-02-17 23:27:16 +01:00
Guilherme Blanco
e6b99c2059
Merge pull request #283 from FabioBatSilva/DDC-807
...
Fix DDC-807
2012-02-14 10:27:49 -08:00
Fabio B. Silva
cdde6e8a5c
fix required discriminator column name
2012-02-13 23:38:36 -02:00
Fabio B. Silva
5d01123413
Fix DDC-807, DDC-553
2012-02-13 23:22:49 -02:00
Fabio B. Silva
86054eb659
fix DDC-1642
2012-02-12 22:24:03 -02:00
Benjamin Eberlei
299def4712
DDC-1641 - Fix test producing failure when skipped.
2012-02-10 21:39:17 +01:00
Miha Vrhovnik
bea78f42e3
Proxy not initialized when parent has get<IDENTIFIER> function. Fixes DDC-1625
2012-01-30 11:44:08 +01:00
Benjamin Eberlei
e774b1d8c0
Fix test for non-mysql like datetimes.
2012-01-29 15:02:40 +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
16b22f0f31
Merge pull request #266 from FabioBatSilva/DDC-1412
...
[DriverChain] Fix DDC-1412 Default Driver
2012-01-28 12:54:47 -08:00
Benjamin Eberlei
3407620bf8
[DDC-1526] Collections are not marked as initialized when they are fetch joined but dont contain any results. This only occurs when using LEFT JOINs on the assocations and causes another query to be fired when the empty collection is accessed again.
2012-01-28 12:28:16 +01: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
jsor
fac820f0e2
Complete custom column option implementation
...
- Support for xml driver
- Tests
2012-01-27 11:05:47 +01:00
Jan Sorgalla
d68fcd8bd2
Implement custom options on table level
2012-01-26 15:05:26 +01:00
Benjamin Eberlei
7dae89bb02
[DDC-1619] Add QueryBuilder#distinct
2012-01-25 10:19:01 +01:00
Benjamin Eberlei
f0a09a2d52
Merge branch 'DDC-1618'
2012-01-25 00:03:56 +01:00
Thomas Rabaix
d9bb861b1f
Fix DDC-1618 - add more check before throwing an iterateWithFetchJoinNotAllowed exception
2012-01-25 00:03:40 +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
Fabio B. Silva
0fce3c8f97
Fix DDC-1412
2012-01-21 12:42:46 -02:00
Benjamin Eberlei
faf92883b6
[DDC-1610] Add test and fix wakeup reflection in combination with event listener
2012-01-21 13:58:25 +01:00
Benjamin Eberlei
6c24251452
[DDC-1612] Fix bug with EntityManager#flush($entity) on new entities.
2012-01-21 13:06:30 +01:00
Benjamin Eberlei
0f3abde413
[DBAL-204] Filter namespaced assets if Schemas/Emulation is not supported.
2012-01-21 11:31:54 +01:00
Guilherme Blanco
febfe35c23
Added coverage for DDC-1529.
2012-01-18 23:51:11 -05:00