John Keller
3bec698fed
add functional test and bug fix for issue #5762
2016-09-07 23:15:00 +02:00
Marco Pivetta
5d12593e70
Rewrote ManyToOne
SLC tests to not rely on multi-level auto-generated identifiers
...
Background:
Test relied on an `A->B->C` association:
* `A#id` being `B`
* `B#id` being `C`
* `C#id` being an auto-generated identifier (post-insert)
This cannot work, because it breaks the UnitOfWork's identity map.
Specifically, no entries for `A` and `B` can exist in the identity map until `C` entries
are persisted (post-insert).
That means that the identifier generator for `A` and `B` should not be an "assigned"
generator, but should instead be a post-insert generator waiting for other entities
to be persisted.
We cannot fix this in ORM 2.x, but we'll need to invent something for 3.x in order to
fix that (directed graph, or caching the order of operations in the metadata graph).
2016-07-07 21:29:10 +02:00
Marco Pivetta
18e3cb4440
#5867 @group
annotations, describing scenario
2016-06-19 12:44:19 +02:00
Marco Pivetta
aa8cf7bae9
#5867 simplifying test case by inlining all required models into the test case
2016-06-19 12:42:49 +02:00
Luís Cobucci
27f3bc1e2c
Allow the usage of embedded objects on parent classes.
...
The `ClassMetadataInfo` was always using the "current class" to
fetch the reflection of a property even when a field is declared
on the parent class (which causes `ReflectionProperty` to throw
an exception).
2016-06-19 12:35:57 +02:00
Marco Pivetta
765e102d01
Merge pull request #5856 from doctrine/fix/#5854-default-query-cache-test-using-wrong-reflection-instance
...
#5854 workaround to avoid populating Second Level Cache from DQL queries with multiple nested DQL aliases
2016-06-19 08:48:38 +02:00
Sebastian Bergmann
9da83cfae8
Make test suite compatible with PHPUnit 5.4.
...
* Use createMock() and getMockBuilder() instead of getMock()
* Use expectException() and expectExceptionMessage() instead of setExpectedException()
2016-06-18 13:01:59 +02:00
FabioBatSilva
163dac4a91
#5854 - Fix SLC queries with multiple nested DQL aliases
2016-06-17 00:11:18 -04:00
Mikhail Shamin
b173763bbb
Remove full qualified class names in tests
2016-05-11 03:00:44 +07:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Patrick Poulain
9461839d42
Fix PostgreSql Tests
2016-02-15 21:07:09 +01:00
Patrick Poulain
e8296e8e7d
Fix ORM Driver Tests
2016-02-15 21:06:34 +01:00
Patrick Poulain
cbde629bf0
Fix MySql Tests
2016-02-15 21:06:01 +01:00
Jeremy Giberson
dd3f67d862
updated manytomany so it maps field names to column names in criteria ordering
2016-02-11 13:39:31 -07:00
Jeremy Giberson
0feaf92348
improve test readability
2016-02-10 20:27:43 -07:00
Jeremy Giberson
ae785757a1
Merge branch 'fix-many-many-criteria' of github.com:petitchevalroux/doctrine2 into many-to-many-criteria-fixes
...
Conflicts:
lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php
2016-02-10 20:04:48 -07:00
Jeremy Giberson
0adeade045
merged git@github.com:SammyK/doctrine2.git:many-to-many-order-by-fix
2016-02-10 19:52:03 -07:00
Jeremy Giberson
f0accca99d
Merge branch 'DDC-3719-fix' of github.com:jeanCarloMachado/doctrine2 into many-to-many-criteria-fixes
2016-02-10 19:40:45 -07:00
Jean Carlo Machado
468fe315ba
fixed indentation
2016-01-29 10:03:44 -02:00
Jean Carlo Machado
375b0369ae
added test of matching non-owing side with criteria
2016-01-28 19:36:52 -02:00
Marco Pivetta
6e6d3e27ab
Common 2.6 compatibility
...
Internal structure of the ArrayCache has changed, therefore we should fix the tests depending on it instead
2015-12-25 15:10:21 +01:00
Marco Pivetta
3971e8c55b
Merge branch 'hotfix/#1573-merge-associated-versioned-entity'
...
Close #1573
2015-12-11 20:17:05 +01:00
Marco Pivetta
996db42029
#1573 - correcting test asset namespace, removing unused properties and bi-directional association
2015-12-11 20:14:53 +01:00
Marco Pivetta
cf3a54ab95
Removing empty newline
2015-12-11 20:00:59 +01:00
bilouwan
d2cbdd1866
Fix superflous whitespaces & empty lines
2015-12-02 14:09:14 +01:00
bilouwan
e8f40f58a1
Fix compatibility with php5.4
2015-11-30 10:35:42 +01:00
Guilherme Blanco
8ea62b95b8
Tests around reported cases over DDC-2524
2015-11-27 18:44:23 +00:00
bilouwan
832adae6b4
Unit test & fix for merge versionned entity
2015-11-27 17:28:45 +01:00
Guilherme Blanco
57b22bd646
Merge pull request #1568 from guiwoda/patch-ddc-3967
...
Identifier is cached with wrong type
2015-11-24 22:17:59 -05:00
Guido Contreras Woda
e3627f1886
Test that reflects the issue described in http://www.doctrine-project.org/jira/browse/DDC-3967
2015-11-24 10:35:31 -03:00
Guido Contreras Woda
6c96e23a47
Test to verify the bug and the fix
2015-11-19 12:02:51 -03:00
Guilherme Blanco
84eb175dbf
Merge pull request #1436 from dadamssg/DDC-3785
...
allow ManyToManyPersister to handle custom identification types
2015-11-15 22:24:01 -05:00
Guilherme Blanco
9f93999758
Merge pull request #1487 from xxccdef/DDC-3864
...
[DDC-3864] Support any ordering of fields in partial object query with embeddable
2015-11-15 22:03:25 -05:00
Guilherme Blanco
e64f44ec9b
Fix one to one inverse side cached entity association key generation
2015-11-13 15:58:52 +00:00
Guilherme Blanco
58992ad523
Fixed support for inverse side second level cache
2015-11-12 05:00:08 +00:00
Guilherme Blanco
49bb687aaf
Merge pull request #1540 from pantelm/master
...
[DDC-3711] Correct Error on manyToMany with composite primary key + add Tests
2015-11-08 22:43:36 -05:00
Guilherme Blanco
d88cf97bef
Merge pull request #1507 from deguif/fix-wrong-property
...
Fixed wrong property name
2015-11-07 10:09:06 -05:00
Marco Pivetta
e7685c89da
Merge pull request #1405 from taueres/master
...
EntityManager#getReference throw ORMException for unrecognized id
2015-11-06 23:07:21 -05:00
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
Guilherme Blanco
1587aac4ff
Added support for OneToMany with orphanRemoval. Replacing entire collection now deletes the replaced collection (scheduled for deletion). No event handling is done as it happens at DBAL level.
2015-11-05 00:08:44 -05:00
Pantel
43b2419a3c
[DDC-3711] add Test that check if the association key are composite
2015-10-31 17:19:39 +01:00
Matthias Pigulla
84f51b68af
Fix tests
...
dd47003641
removes the 'DoctrineNamespaceCacheKey[]' entry from the cache. Thus, all tests counting cache entries were off by one.
2015-09-19 01:15:39 +02:00
François-Xavier de Guillebon
ae243643e5
Added test
2015-09-14 18:35:49 +02:00
Marco Pivetta
a0a0c731bb
Merge pull request #1457 from phansys/short_types
...
Updated syntax for "integer" and "boolean" types
2015-09-05 17:21:05 +02:00
Issei.M
df461601f7
removed useless line breaks
2015-09-03 17:55:14 +09:00
Bill Schaller
f88896cc9d
Merge pull request #1463 from ehimen/paginate-order-by-subselect
...
Fixed issue when paginator orders by a subselect expression
2015-08-04 14:17:50 -04:00
Egidijus Jucevičius
d4d9a2ba3c
Support any ordering of fields in partial object query with embeddable [DDC-3864]
2015-08-04 10:56:50 +03:00
Andy Cook
61488d955e
Fixed issue when paginator orders by a subselect expression on platforms supporting ROW_NUMBER OVER() function.
2015-07-16 11:20:22 +01:00
Marco Pivetta
eb5d87cd94
DDC-3699 - #1387 - leveraging the OrmFunctionalTestCase
API
2015-07-15 21:51:04 +01:00
Marco Pivetta
12183b7e6c
DDC-3699 - #1387 - catching specific exceptions
2015-07-15 21:47:37 +01:00