Stefano Rodriguez
9a14b40495
use of assertCount
2012-09-07 14:44:18 +02:00
Stefano Rodriguez
4b3ecfe674
Added a failing test case on PersistentCollection::matching() when collection is not initialized and there are NEW entities in the collection
2012-09-07 10:46:33 +02:00
Bilal Amarni
a9b4debe37
allowed to pass filter objects to the configurator
2012-09-03 10:52:46 +02:00
Josiah Truasheim
e0d16331a4
Fixed formatting issues identified by Stof
2012-08-31 19:51:22 +07:00
Josiah Truasheim
783c53d57c
Added a failing test for DDC-2003
2012-08-31 17:52:46 +07:00
Benjamin Eberlei
bc2476f342
[DDC-1918] Fix weird results at the end of paginator when using fetch joins
2012-08-29 15:16:07 +02:00
Benjamin Eberlei
104a76a6b1
Update EntityRepository and PersistentCollection to new Criteria#expr() method instead of having to implement themselves.
2012-08-01 21:37:22 +02:00
Benjamin Eberlei
e8d3fc73ff
Merge branch 'DDC-1964'
2012-07-29 11:25:54 +02:00
Benjamin Eberlei
7c1235dedb
[DDC-1964] Fix issue with refresh and and object hydrator not setting field to null explicitly to override possible previous values.
2012-07-29 11:25:45 +02:00
Benjamin Eberlei
bcbef5670c
Merge branch 'DDC-1939'
2012-07-29 09:27:20 +02:00
Benjamin Eberlei
354fa14df4
[DDC-1939] Add test for persistent collection delete with composite key
2012-07-29 09:27:08 +02:00
Guilherme Blanco
04e6cc78cd
Fixed is_subclass_of comparing an interface which brought our requirement to 5.3.9. Changed to reflection approach which still keep us at the same dependency as before.
2012-07-26 15:50:51 -04:00
Johannes M. Schmitt
fc4a07c2b3
added failing test for refresh with eager fetching
2012-07-26 12:54:58 +02:00
Marco Pivetta
5b3eee8071
DDC-1925 - squashing ticket tests into a single file
2012-07-20 00:03:39 +02:00
Marco Pivetta
81f97e92d3
Adding tests for DDC-1925
2012-07-19 22:00:56 +02:00
Benjamin Eberlei
b2385e0afa
[DDC-1637] Implementation of Criteria Collections API for
...
PersistentCollection (OneToMany only) and EntityRepository.
2012-07-09 09:59:48 +02:00
Benjamin Eberlei
4aafeaf7a6
Fix test on PostgreSQL
2012-07-09 09:55:41 +02:00
Benjamin Eberlei
fe292cc503
Merge pull request #392 from widop/patch-1
...
Invalid paginator query cloning
2012-07-08 09:34:09 -07:00
Benjamin Eberlei
3b04cf5b2f
Merge pull request #396 from Ocramius/DDC-1893
...
DDC-1893 - Updating configuration to reflect latest Doctrine Common changes
2012-07-08 09:26:15 -07:00
Benjamin Eberlei
6e924f2a2c
[DDC-1657] Prove that DBAL changes also work in ORM, not leading to drop sequence statements on postgresql with SERIAL pks.
2012-07-08 18:22:38 +02:00
Benjamin Eberlei
eaae1f222f
Fix PostgreSQL test-failure. UnitOfWork#getEntityState() produced exists() queries because of unmanaged entity passed as parameter to AbstractQuery#setParameter(), thereby skewing the sql count
2012-07-08 16:57:40 +02:00
Marco Pivetta
86dbddd596
Updating to reflect latest Doctrine Common changes
...
Also, changing logic so that the SimpleAnnotationReader is no more the
default one. An additional parameter for the method will allow using it.
The CS fixes that were additionally implemented (along with other minor changes
that do not affect BC compatibility are caused by a CS sniff via IDE.
2012-07-08 16:30:35 +02:00
Benjamin Eberlei
18d4a2f970
[DDC-1775] Fix NotifyPropertyChanged Listener being attached in addIdentityMap(), which is too late for certain use-cases in the persist lifecycle.
2012-07-07 17:47:29 +02:00
Eric GELOEN
3bdf86922c
Add clone query test
2012-07-07 17:35:05 +02:00
Benjamin Eberlei
3783ca6b43
[DDC-1707] Working testcase
2012-07-07 17:15:32 +02:00
Benjamin Eberlei
cc4613533b
Fix tests after DBAL adjustments
2012-07-04 23:58:41 +02:00
Fabio B. Silva
632d13ba0c
fix extra lazy count
2012-07-04 17:11:43 -03:00
Fabio B. Silva
fe11831bd7
test remove item and clear collection
2012-07-04 17:11:43 -03:00
Fabio B. Silva
076663fe3a
fix DDC-1885 in persisters
2012-07-04 17:11:42 -03:00
Fabio B. Silva
e0a236a9af
fix DDC-142 load OneToOne EAGER
2012-06-18 14:43:00 -03:00
Fabio B. Silva
cd806b83db
fix DDC-142 persist OneToOne
2012-06-18 14:42:59 -03:00
Fabio B. Silva
7807d6806c
fix delete join table not owning side
2012-06-18 14:42:59 -03:00
Fabio B. Silva
2afe24f51c
start to work in xxToOne quote
2012-06-18 14:42:58 -03:00
Fabio B. Silva
a75c672ee7
fix sequence and join columns
2012-06-18 14:42:57 -03:00
Fabio B. Silva
f335f23145
tests for quoted columns metadata
2012-06-18 14:42:56 -03:00
Fabio B. Silva
8fec73673d
fix DDC-1719 in persiter and query level
2012-06-18 14:42:56 -03:00
Fabio B. Silva
505bdb9c03
missing files
2012-06-18 14:42:54 -03:00
Benjamin Eberlei
6f13e9543b
Fix QueryTest
2012-06-18 17:03:08 +02:00
Guilherme Blanco
cba4e55ac4
Added more coverage tests. Required result confirmation.
2012-06-18 17:02:14 +02:00
Guilherme Blanco
161ae31a7e
Adde more BC compatibility in setParameters.
2012-05-29 14:41:32 -04:00
Guilherme Blanco
b3e7493278
Made setParameters()/excute()/iterate() BC compatible.
2012-05-29 14:25:54 -04:00
Guilherme Blanco
1635e0af4b
[DDC-1840] Implemented parameters as a collection.
2012-05-28 12:16:42 -04:00
Benjamin Eberlei
3398d1e287
[DDC-1685] Fix bug in OutputWalker when used on entities with Foreign Key as Primary Key.
2012-05-27 18:33:35 +02:00
Benjamin Eberlei
03d5922996
[DDC-1713] Verify EntityRepository#findBy() works with fetching array of values.
2012-05-27 17:22:16 +02:00
Benjamin Eberlei
6523f7f59e
[DDC-1777] Fix bug in BasicEntityPersister#exists() when no primary key is set.
2012-05-27 17:11:21 +02:00
Benjamin Eberlei
44c867827c
[DDC-1783] Fix memory leak in ObjectHydrator when using AbstractQuery#iterate() and EntityManager#clear()
2012-05-27 12:00:43 +02:00
Karsten Dambekalns
bcddc47356
[DDC-1835] Fix cloning persistent collections.
2012-05-27 10:17:12 +02:00
Benjamin Eberlei
0868ec1c19
Update Common and fix cache tests with different assumptions about keys.
2012-05-26 19:29:51 +02:00
Guilherme Blanco
b32bb26a84
Re-added coverage for DDC-369 and DDC-954.
2012-05-23 01:07:29 -04:00
Guilherme Blanco
738bfd8082
Reverted coverage for DDC-369 and DDC-954.
2012-05-23 00:14:50 -04:00
Guilherme Blanco
3e601c3a53
Added coverage for DDC-369 and DDC-954. All passing.
2012-05-23 00:10:25 -04:00
Fabio B. Silva
0af5da77f1
fix DDC-1822
2012-05-19 13:40:01 -03:00
Benjamin Eberlei
f566b79c87
Fix coding standards
2012-05-04 19:16:07 +02:00
Benjamin Eberlei
63b2c03a02
Merge pull request #331 from gedrox/DDC-1757
...
DDC-1757 test and patched query builder
2012-05-04 10:08:59 -07:00
Benjamin Eberlei
e09a9c7deb
Merge pull request #315 from Ocramius/getclass-on-proxies-refactoring
...
Allowing proxies to be passed to ORM public API
2012-05-04 10:04:14 -07:00
Aigars Gedroics
5392133beb
[DDC-1757] test checks DQL only now, doesn't create schema anymore
2012-04-20 16:06:21 +03:00
Aigars Gedroics
3ddc461d30
[DDC-1757] Fix moved to private method, test improved.
2012-04-20 16:06:21 +03:00
Aigars Gedroics
a1ab3e8cf4
DDC-1757 test and patched query builder
2012-04-20 16:06:21 +03:00
Guilherme Blanco
bad811df6a
Merge pull request #293 from FabioBatSilva/DDC-1663
...
[DDC-1663]Native SQL Query Result Set Mappings
2012-04-16 12:06:26 -07:00
Tim Nagel
6cbdf53975
Fixed DDC1778
2012-04-16 13:03:19 +10:00
Fabio B. Silva
f8b1915efd
named native query inheritance
2012-04-15 15:40:43 -03:00
Fabio B. Silva
52c49b444e
test multiple entity results
2012-04-15 15:40:43 -03:00
Fabio B. Silva
8c407af1fc
fix postgres test
2012-04-15 15:40:41 -03:00
Fabio B. Silva
68665af6e8
test discriminator column
2012-04-15 15:40:41 -03:00
Fabio B. Silva
0cc2583a02
test scalar result
2012-04-15 15:40:40 -03:00
Fabio B. Silva
f813223036
test joined one-to-many and one-to-one
2012-04-15 15:40:40 -03:00
Fabio B. Silva
f018a56d6d
test native query with result class
2012-04-15 15:40:40 -03:00
Fabio B. Silva
bfc7986b20
annotation driver and basic support
2012-04-15 15:39:22 -03:00
Marco Pivetta
85ea27dba2
Adding tests for additional usages of the proxy classname in ORM public API
...
Like Proxy classnames in DQL, EM#getRepository, EM#getReference
2012-04-07 18:53:34 +02:00
Marco Pivetta
37279d0753
Adding test to verify validity of changes (fails without them)
2012-04-07 18:53:34 +02:00
Guilherme Blanco
a5c13a5ef1
Merge pull request #329 from doctrine/DDC-1766
...
[DDC-1766] Initial implementation of hydration cache.
2012-04-06 06:50:11 -07:00
Benjamin Eberlei
0b3577f2d2
[DDC-1766] Rewrite getHydrationCacheId() to use existing processParameterValue() method. Other code style changes.
2012-04-05 22:40:40 +02:00
Benjamin Eberlei
fd2a22bd56
[DDC-1766] Add test with explicit cache key.
2012-04-04 23:42:17 +02:00
Benjamin Eberlei
864fbbdaaf
[DDC-1766] Remove some testcode
2012-04-04 23:24:51 +02:00
Benjamin Eberlei
3047c4b955
[DDC-1766] Initial implementation of hydration cache.
2012-04-04 23:10:30 +02:00
Alexander
cc06508bd4
Added test coverage for repository functions when using filters
2012-04-04 22:00:01 +02:00
Jonathan H. Wage
24e808844b
Allow flushing of many entities by passing an array of entities.
2012-03-15 17:45:25 -05:00
Alexander
c6ef7a7c03
Merge pull request #303 from sandermarechal/paginate-sql-walkers
...
Fix GROUP BY clauses for PostgreSQL
2012-03-14 00:16:29 -07:00
Sander Marechal
cb892736eb
Fix GROUP BY clauses for PostgreSQL
2012-03-14 07:58:58 +01:00
Benjamin Eberlei
694d0911c9
Merge pull request #301 from sandermarechal/paginate-sql-walkers
...
Fix HAVING queries for PostgreSQL
2012-03-13 01:15:55 -07:00
Sander Marechal
b2fa2cb195
Fix HAVING queries for PostgreSQL
2012-03-13 07:59:14 +01: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
53ff312936
Renamed *SqlWalker to *OutputWalker
2012-03-12 08:33:35 +01: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
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
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