1
0
mirror of synced 2024-12-05 03:06:05 +03:00
Commit Graph

3427 Commits

Author SHA1 Message Date
Marco Pivetta
11da060668 #1336 - class constants over string references in tests - removing useless QueryBuilder usage 2015-03-17 21:21:20 +00:00
Stefano Torresi
5d6a39d14c fix tests tear down 2015-03-17 21:08:07 +00:00
Stefano Torresi
c7ad932b5f fix copyright notices 2015-03-17 21:08:07 +00:00
Stefano Torresi
1b850fbb23 add missing return statement 2015-03-17 21:08:07 +00:00
Stefano Torresi
41e873bd72 add failing functional test for custom id object types 2015-03-17 21:08:06 +00:00
Marco Pivetta
376e74fb7e #1333 - minor CS fixes - spacing/PSR-2 2015-03-17 20:59:56 +00:00
Jan Langer
8ac66bb608 Allow DateTimeInterface as parameter value 2015-03-17 20:58:20 +00:00
Bill Schaller
eebce88146 Revert "Revert "Merge branch 'hotfix/#1220-sort-paginator-subquery-output-only-once'""
This reverts commit 6a1755972d.
2015-03-17 13:58:50 -04:00
Marco Pivetta
a3f9f153dd Merge pull request #1321 from vvh-empora/master
embeddedClasses support...
2015-03-10 21:53:05 +01:00
Marco Pivetta
73d4d88ba1 Merge pull request #1326 from guiwoda/orphan-removal-association-builder
Allow AssociationBuilder to set a relation as orphan removal
2015-03-09 23:18:59 +01:00
Guido Contreras Woda
71821bb7a3 Allow AssociationBuilder to set a relation as orphan removal 2015-03-09 18:54:35 -03:00
Volker von Hoesslin
0824c6136d unittest DDC3597: fix for PHP 5.4 2015-03-04 11:55:08 +01:00
Volker von Hoesslin
2aef87c9b2 add unittest for DDC3597 2015-03-03 16:59:48 +01:00
Guilherme Blanco
b1d918b124 Fixed more broken tests. 2015-03-01 23:57:38 -05:00
Guilherme Blanco
588c92875d Removed fragile test. 2015-03-01 00:32:43 -05:00
Guilherme Blanco
19f18fa069 PersistentCollection now extends AbstractLazyCollection. 2015-03-01 00:30:21 -05:00
Guilherme Blanco
6e40361fe7 Merge pull request #1311 from jankramer/DDC-3582-nested-embeddable-hydration
[DDC-3582] Wrong class is instantiated when using nested embeddables
2015-02-27 10:31:58 -05:00
Jan Kramer
c059de9e60 Implement test to show nested embeddables are not instantiated properly 2015-02-27 15:09:22 +01:00
Marco Pivetta
a41e774bb1 Merge pull request #1314 from FabioBatSilva/date-add-second
DATE_ADD - Support for seconds
2015-02-26 10:20:52 +00:00
FabioBatSilva
57bcd7cd3d DATE_ADD - Support for seconds 2015-02-25 14:32:51 -05:00
Guilherme Blanco
5ab4c3d50c Added programatical support to define indexBy on root aliases. 2015-02-25 14:29:10 -05:00
Asmir Mustafic
d33ee5e7ff Removed unnecessary API from test cases 2015-02-24 08:53:22 +01:00
Guilherme Blanco
4680a7b861 Fixed bug where embedded reflection fields were never exposed to userland. 2015-02-20 14:10:28 -05:00
Asmir Mustafic
4d43f5ca52 Tested composite keys on non cache-able entities 2015-02-20 19:00:32 +01:00
Kristopher Wilson
a6448f5c77 make QueryBuilder::getAllAliases public 2015-02-16 08:31:14 -05:00
Asmir Mustafic
24dd0c6a55 Fixed delete order on tearDown method 2015-02-16 08:55:27 +01:00
Asmir Mustafic
b9577bf2f3 Added tests for many-to-one non cache-able relations 2015-02-16 08:55:27 +01:00
Asmir Mustafic
60164931b8 Handled one-to-many non cache-able relations 2015-02-16 08:55:27 +01:00
Michaël Gallego
ed6fa0deb4 Add failing test 2015-02-16 08:55:27 +01:00
Marco Pivetta
1f67218dc5 #1229 - code style fixes (alignment/spacing) 2015-02-16 02:06:22 +00:00
Guido Contreras Woda
baeab5d4f4 More consistent test naming 2015-02-16 02:02:29 +00:00
Guido Contreras Woda
51881fed94 Added tests and validation on joinColumns being set before checking if its a composite key. 2015-02-16 02:02:29 +00:00
Dries De Peuter
4a6afb46e2 Fix join when recreation of query from parts. 2015-02-16 01:23:27 +00:00
Asmir Mustafic
2e890362c5 Tested second level cache with composite primary keys 2015-02-16 00:53:46 +00:00
Asmir Mustafic
7222991b13 Tested composite primary key support 2015-02-16 00:53:46 +00:00
Asmir Mustafic
2eb7dedf4f Refactored IdentifierFlattener 2015-02-16 00:53:46 +00:00
Ryan Weaver
75bb3a0de3 Small code change thanks to the comments and adding a test 2015-02-04 13:49:51 -05:00
Marco Pivetta
17a23ea825 Merge pull request #1222 from guiwoda/embeddables-in-metadata-builder
Embeddables in metadata builder
2015-01-28 22:25:10 +00:00
Marco Pivetta
3ed73b4a60 Merge pull request #1288 from Ocramius/hotfix/#1169-extra-lazy-one-to-many-is-noop-when-not-doing-orphan-removal
Hotfix - #1169 - extra lazy one to many must be no-op when not doing orphan removal
2015-01-28 20:27:22 +00:00
Marco Pivetta
e76b20b109 #1169 DDC-3343 - removing note about query count assertion 2015-01-28 20:01:57 +00:00
Steve Müller
3b61d2d0fe initialize database schema only once and avoid unnecessary connections 2015-01-27 12:28:31 +01:00
Steve Müller
75e41eefb5 fix indentation 2015-01-27 10:02:57 +01:00
Steve Müller
5795d53ca7 remove temporary database dependencies from Travis build 2015-01-27 09:44:06 +01:00
Steve Müller
2fbc483fe3 apply current implementation from DBAL @ dcdf744e3fdd2ba99239ee41009e08a4b6450eff 2015-01-27 09:40:45 +01:00
Marco Pivetta
c4019d96b9 #1169 DDC-3343 - when a deletion fails for some reason, related cache entries should be evicted to avoid collisions with DB state 2015-01-27 09:03:36 +01:00
Marco Pivetta
3f28adf9b6 #1169 DDC-3343 - correcting collection name used in tests 2015-01-27 07:45:58 +01:00
Marco Pivetta
a0eb6005f3 #1169 DDC-3343 - adding tests for orphan-removal + extra-lazy + one-to-many element removal behavior 2015-01-27 07:42:48 +01:00
Marco Pivetta
539c364ca6 #1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified. 2015-01-27 06:26:55 +01:00
Marco Pivetta
9839c400b8 #1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified. 2015-01-27 06:19:26 +01:00
Marco Pivetta
146354d835 Merge pull request #1280 from Ocramius/hotfix/#1277-find-one-with-eager-loads-is-failing
[DDC-3346] #1277 find one with eager loads is failing
2015-01-25 06:00:47 +01:00
Marco Pivetta
d024193cc0 Merge pull request #1272 from Ocramius/hotfix/DDC-2704-merge-inherited-transient-properties
[DDC-2704] - merge inherited transient properties - merge properties into uninitialized proxies
2015-01-25 05:55:53 +01:00
Marco Pivetta
5bf18298b1 Merge pull request #1281 from Ocramius/hotfix/#1169-extra-lazy-one-to-many-should-not-delete-referenced-entities
Hotfix/#1169 extra lazy one to many should not delete referenced entities
2015-01-25 05:43:34 +01:00
Marco Pivetta
7e85c94f48 #1169 DDC-3343 - adapting cached collection persister logic to EXTRA_LAZY collection behavior 2015-01-25 04:40:30 +01:00
Marco Pivetta
dff365318d #1277 DDC-3346 DDC-3531 - enforcing 0 offset to avoid persisting more than 1 row 2015-01-24 14:39:47 +01:00
Marco Pivetta
186c593058 #1277 DDC-3346 DDC-3531 - proper bi-directional association setup 2015-01-24 14:39:46 +01:00
Marco Pivetta
39a8941d1b #1277 DDC-3346 DDC-3531 - minor CS fixes/cleanups: avoiding setters 2015-01-24 14:39:46 +01:00
Marco Pivetta
04a271a04e #1277 DDC-3346 DDC-3531 - refactoring test assets for readability 2015-01-24 14:39:46 +01:00
Marco Pivetta
36bc448880 #1277 DDC-3346 DDC-3531 - refactoring test code for simplicity/readability 2015-01-24 14:39:46 +01:00
Marco Pivetta
16f447d1ac #1277 DDC-3346 DDC-3531 - correct usage of the model set (setUp/tearDown of model-related tables) 2015-01-24 14:39:46 +01:00
Marco Pivetta
6e3ad496e2 #1277 DDC-3346 DDC-3531 - constants over string references 2015-01-24 14:39:45 +01:00
Marco Pivetta
157bf203bc #1277 DDC-3346 DDC-3531 - additional tests for LIMIT and OFFSET repository API (must not hydrate collections) 2015-01-24 14:39:45 +01:00
Pavel Batanov
981cebbf4c Update test according to @Ocramius notes 2015-01-24 14:39:43 +01:00
Pavel Batanov
e36c7b0c2a DDC-3346 failing test example 2015-01-24 14:39:42 +01:00
Marco Pivetta
28e0da4321 #1272 DDC-2704 - reverting classmetadata API changes (moved all to reflection property getter API) 2015-01-24 14:32:23 +01:00
Marco Pivetta
05a8e1c77d #1272 DDC-2704 - test assets for the property getter utility tests 2015-01-24 14:30:07 +01:00
Marco Pivetta
1b0a5e38d9 #1272 DDC-2704 - specification for a property getter utility 2015-01-24 14:28:54 +01:00
Marco Pivetta
91f4ed8b92 DDC-2704 - data should be merged only into initialized proxies 2015-01-24 13:22:16 +01:00
Marco Pivetta
21995a8b10 DDC-2704 - more explicit value checking 2015-01-24 13:22:16 +01:00
Marco Pivetta
30dcece125 DDC-2704 - covering code handling class metadata skipping of static properties 2015-01-24 13:22:16 +01:00
Marco Pivetta
3df9b4d122 DDC-2704 - synchronized model classes to new test code 2015-01-24 13:22:16 +01:00
Marco Pivetta
bd667b82d9 DDC-2704 - carefully checking defined classes in getAllReflectionProperties 2015-01-24 13:22:16 +01:00
Marco Pivetta
1e6c071bb8 DDC-2704 - trying to get all reflection properties from a partially initialized class metadata instance will result in a failure 2015-01-24 13:22:15 +01:00
Marco Pivetta
4e08c99b86 DDC-2704 - trying to get all reflection properties from an unitialized class metadata instance will result in a failure 2015-01-24 13:22:15 +01:00
Marco Pivetta
5ae980e0f9 DDC-2704 - reducing test case clutter 2015-01-24 13:22:15 +01:00
Marco Pivetta
302e6218bb DDC-2704 - renaming test case for clarity 2015-01-24 13:22:15 +01:00
Marco Pivetta
942004226c DDC-2704 - basic test case verifying that merged transient properties are not handled when in an inheritance 2015-01-24 13:22:15 +01:00
Marco Pivetta
6a1755972d Revert "Merge branch 'hotfix/#1220-sort-paginator-subquery-output-only-once'"
This reverts commit 8f097ab304, reversing
changes made to b23a8dd429.

Conflicts:
	tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2015-01-24 13:10:25 +01:00
Austin Morris
c8160fcd0e Failing test for an ORDER BY that is INNER JOINED in a subquery 2015-01-24 13:07:56 +01:00
Marco Pivetta
01a9dadee7 #1169 DDC-3343 - removed unused imports 2015-01-24 12:54:40 +01:00
Marco Pivetta
b7b716a6bb #1169 DDC-3343 - moved tests to correct test class 2015-01-24 12:53:48 +01:00
Marco Pivetta
d443d4f3b6 #1169 DDC-3343 - additional test cases: removing proxies from an extra-lazy collection still updates the owning side values 2015-01-24 12:21:21 +01:00
Marco Pivetta
6a2b7c2a8e #1169 DDC-3343 - correcting query count assertions on extra-lazy specific tests (some DELETE operations became UPDATE operations) 2015-01-24 12:20:33 +01:00
Marco Pivetta
99c5650ba4 #1169 DDC-3343 - removing duplicate test 2015-01-24 11:59:21 +01:00
Marco Pivetta
a8796fa489 #1169 DDC-3343 - integrating tests into the existing test suite 2015-01-24 11:58:57 +01:00
Marco Pivetta
ff986a9bf5 #1169 DDC-3343 - importing used classe 2015-01-24 11:54:58 +01:00
Marco Pivetta
ed0331d25a #1169 DDC-3343 - optimized imports 2015-01-24 11:54:32 +01:00
Marco Pivetta
43f301fdad #1169 DDC-3343 - refactoring test to use pre-existing test models 2015-01-24 11:54:17 +01:00
Marco Pivetta
15397bbe40 #1169 DDC-3343 - refactoring test to use pre-existing test models 2015-01-24 11:54:03 +01:00
Marco Pivetta
aed01ea571 #1169 DDC-3343 - minor refactoring: constant over string reference 2015-01-24 11:41:20 +01:00
Andrea Sprega
c2b3348f99 [DDC-3343] Failing test case (updated) 2015-01-24 11:30:17 +01:00
Andrea Sprega
db3697433b [DDC-3343] Failing test case 2015-01-24 11:30:17 +01:00
Marco Pivetta
8305649a45 #1176 DDC-3378 - refactored test logic to use the newly introduced test assets 2015-01-22 12:10:39 +01:00
Marco Pivetta
8987c9ab37 #1176 DDC-3378 - moved test asset entities to proper models directory 2015-01-22 12:07:42 +01:00
Adrien Brault
f189c1aaf0 Update test to valid use case 2015-01-22 11:18:12 +01:00
Adrien Brault
4058ad3958 Add test exposing UnitOfWork merge bug 2015-01-22 11:18:12 +01:00
Marco Pivetta
6547d5462e #1257 DDC-3300 - strengthening test case (missing assertion, test name) 2015-01-22 09:51:43 +01:00
Marco Pivetta
c1cc768aee #1257 DDC-3300 - correcting further incomplete discriminator maps in the test suite 2015-01-22 09:50:59 +01:00
Marco Pivetta
635d2c141f #1130 DDC-3300 - minor CS fix (EOF EOL) 2015-01-22 09:44:39 +01:00
Marco Pivetta
fbe294927f #1130 DDC-3300 - cleaning up test code 2015-01-22 09:44:39 +01:00
Marco Pivetta
8a6b1b48e3 #1130 DDC-3300 - removing unused ResolveDiscriminatorMapListener and related test 2015-01-22 09:44:39 +01:00