Nicolas FRANÇOIS
40f2a3efba
Add test case for many-to-many collection deletion, when owning side has a composite PK
2018-01-30 01:04:28 +01:00
Tyler Romeo
bb8970286d
Allow association mappings as IDs for joined-table inherited entity
...
SchemaTool has custom logic for creating the primary key of a
joined-table inherited entity. This logic overlooked association maps
as a possible source for identity columns, resulting in a fatal error
when fetching the primary key list for child entities.
Removed any custom logic for generating primary keys for root entities
in joined-table inheritance, deferring to the common logic used for
other entities.
Also adjusted the child entity logic, scanning association maps for
identity columns, and including the column as appropriate. It also
ensures that the primary key columns are in the correct order.
2017-12-19 17:58:31 +01:00
Grégoire Paris
30fccf8e83
Proove orphan-removal on many-to-one is useless
2017-10-14 12:39:57 +02:00
Marco Pivetta
d831f4fd9f
#6759 segregating test models into their own namespace
2017-10-07 12:48:19 +02:00
Maximilian Bosch
92476b5953
#5934 - add fetch
option to AssociationOverride
in order to override fetch strategy for subclasses of entities
2017-05-30 18:19:48 +02:00
Luís Cobucci
0aef63b350
Fix quoting also when using inheritance
2017-04-30 19:36:41 +02:00
Jarek Jakubowski
38bfcc6a7a
Fix notice in ClassMetadata when there is no ID Column defined
...
When you forget about defining the ID/PK Column, then this ugly Notice appear.
Now it will throw nice Exception.
2017-04-30 11:38:47 +02:00
Marco Pivetta
21a5d8ca1b
#6174 #5570 removed modifications applied to the CompanyContractListener
, since UnitOfWorkTest
now completely encapsulates the scenarios being covered
2016-12-18 15:48:10 +01:00
Marco Pivetta
0c2edcd08a
#6174 #5570 CS - spacing/variable naming
2016-12-18 14:47:16 +01:00
bilouwan
7f4de25a26
Cherry pick unit test from PR #5570 (Fix PrePersist EventListener when using merge instead of persist)
2016-12-15 13:03:53 +01:00
Luís Cobucci
62d122bd54
Remove old "CLASSNAME" constants from test models
2016-12-08 18:15:48 +01:00
Luís Cobucci
fda6fdd9fb
Use "::class" syntax on "tests" directory
2016-12-08 18:13:39 +01:00
Luís Cobucci
74c8a08828
Use short-array syntax on "tests" directory
2016-12-07 23:33:41 +01:00
Jefersson Nathan
dbe843fc4b
remove license from header of test files
2016-10-26 13:24:33 -03:00
Carl Vuorinen
d2cbd5e872
PR fixes (public properties & correct letter case in annotations)
2016-09-08 13:37:00 +02:00
Carl Vuorinen
12b5e79ff2
Create a failing test for issue #5989
...
Field with type=simple_array in a joined inheritance gets overridden by empty array in the hydrator
2016-09-08 13:37: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
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
jeremygiberson@gmail.com
1e660abeb8
cascade all operations on cmstags
2016-02-14 17:43:58 -07:00
jeremygiberson@gmail.com
3ed64dcec2
changed relation table column name to match
2016-02-14 17:37:25 -07: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
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
41235f61de
#1573 removing unused API
2015-12-11 19:59:08 +01:00
bilouwan
d2cbdd1866
Fix superflous whitespaces & empty lines
2015-12-02 14:09:14 +01:00
bilouwan
832adae6b4
Unit test & fix for merge versionned entity
2015-11-27 17:28:45 +01:00
Marco Pivetta
9c5cea3e95
Merge pull request #1561 from deeky666/DDC-4006
...
[DDC-4006] Inherit ID generator strategy mapping from embeddables
2015-11-19 16:34:32 +01:00
Steve Müller
86c81da7ce
inherit ID generator strategy mapping from embeddables
2015-11-19 16:10:48 +01:00
Guido Contreras Woda
6c96e23a47
Test to verify the bug and the fix
2015-11-19 12:02:51 -03: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
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
z38
ff28507b88
Allow override of inversedBy
2015-11-05 12:11:29 +01:00
Pantel
43b2419a3c
[DDC-3711] add Test that check if the association key are composite
2015-10-31 17:19:39 +01: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
Marco Pivetta
74883e535f
DDC-3699 - #1387 - simpifying tests, clarifying on test method names
2015-07-15 21:46:23 +01:00
Lenard Palko
cbfd71cec6
Added test cases for both one-to-one and one-to-many cases.
2015-07-15 21:26:45 +01:00
Javier Spagnoletti
97cc49033e
Updated syntax for ``integer
` and
`boolean
`` types
...
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Used short syntax for ```integer``` and ```boolean``` types.
**Before**
```php
/**
* @var integer
*
* @ORM\Column(name="some_integer_field", type="integer")
*/
private $someIntegerField;
/**
* @var boolean
*
* @ORM\Column(name="some_boolean_field", type="boolean")
*/
private $someBooleanField;
```
**After**
```php
/**
* @var int
*
* @ORM\Column(name="some_integer_field", type="integer")
*/
private $someIntegerField;
/**
* @var bool
*
* @ORM\Column(name="some_boolean_field", type="boolean")
*/
private $someBooleanField;
```
2015-07-14 15:30:13 -03:00
Marco Pivetta
21b70577d3
Hydration of fetch-joined results fails when an entity has a default value of array
for the collection property
2015-04-02 23:43:16 +01:00
Kristopher Wilson
9d7aa9ba39
Adding failing test case for PaginationTest
...
The failure comes into play when an entity has an attribute named
differently from its corresponding column name.
2015-03-31 21:39:21 +01:00
Alexander Orabey
f92307d06d
problem with LimitSubqueryOutputWalker when use InheritanceType
...
Conflicts:
tests/Doctrine/Tests/OrmFunctionalTestCase.php
2015-03-31 21:36:32 +01:00
Bill Schaller
ff75a3ad49
Fix paginator issues when ordering by a joined column from a to-many association.
...
Manual merge testcase from #1351
2015-03-31 21:36:32 +01:00
Bill Schaller
147bdd8ede
Fixed nitpicks from @stof
2015-03-24 00:25:12 +00:00
Bill Schaller
81ccd93b74
Add thorough functional tests for Paginator, expand existing ones.
2015-03-24 00:25:12 +00:00
Marco Pivetta
1add0a04fa
Merge pull request #1302 from goetas/pr1301
...
Store column values of not cache-able associations
2015-03-17 23:27:04 +00:00
Marco Pivetta
0c0d3a1a7c
#1316 - removing unused API from stub class
2015-03-17 23:14:29 +00:00