Marco Pivetta
971c400025
Merge pull request #6462 from mkosiedowski/proxy-embedded-fields-fix
...
Fix #6460 - \Doctrine\ORM\Mapping\ClassMetadataInfo::hasField should return true for embedded fields
2017-06-01 15:52:07 +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
f18e178960
Fix wrong YAML mapping
...
We had duplicated keys and that's no longer valid on symfony/yaml 3.3.
2017-05-30 12:51:51 +02:00
Maciej Kosiedowski
76f0fe45af
fixes in tests
2017-05-22 15:52:19 +02:00
Maciej Kosiedowski
f304685c68
Fix #6460 - \Doctrine\ORM\Mapping\ClassMetadataInfo::hasField should return true for embedded fields
2017-05-22 14:41:06 +02:00
Simone Gentili
0a801b895e
compute size of loaders beforehand and not on each iteration
2017-05-15 07:43:15 +02:00
Luís Cobucci
e71272e2b4
Evict result set cache if Query#expireResultCache() was called
2017-05-02 23:25:56 +02:00
bruno da silva
85a52d781e
add a not weel writend/nammed test testing Query::expireResultCache()
2017-05-02 23:25:56 +02:00
Marco Pivetta
2c1ebc4ef1
Merge pull request #6416 from lcobucci/fix-quote-on-inheritance
...
Fix quoting when using inheritance as well
2017-05-02 09:42:03 +02:00
Timothy Clissold
0a10f347d3
Fix inheritance join alias
2017-05-02 00:17:16 +02:00
Marcin Szulc
a360da5a7e
Fix lazy loading of 1-to-1 relationship with custom id object
...
Fixing case when lazy loading of entity in one-to-one relationship on the side without foreign key
did not return eht entity because of custom type not being detected and properly formatted before
applying to database query.
Closes https://github.com/doctrine/doctrine2/issues/5887
2017-04-30 19:53:28 +02:00
Luís Cobucci
0aef63b350
Fix quoting also when using inheritance
2017-04-30 19:36:41 +02:00
lemartin
7c6c5d87c8
Fix quoting issues related to ticket #6402
...
Apply quoting strategy to foreign key columns of one-to-one relation so
that correct select statements are generated. And use unquoted column
names in result mapping instead of quoted ones, as consumers (namely
IdentifierFlattener) expect unquoted column names.
2017-04-30 13:51:49 +02:00
Vytautas Stankus
a557c97a93
Add support for STARTS_WITH and ENDS_WITH comparison operators
2017-04-30 13:19:51 +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
Sam-Burns
3d7a7346f7
Quieting risky test warnings where tests do actually perform assertions
2017-03-31 23:23:22 +01:00
Sam-Burns
5bd7bd8d48
Updating to PHPUnit 6
2017-03-31 21:59:02 +01:00
Boris Yonchev
bd1efaf528
DDC-2780 - Fixed issue with IS NULL on join aliases
2017-03-07 18:34:50 +01:00
Luís Cobucci
dcc80af7d9
Fix EntityManagerDecorator tests
...
We were expecting a return value for all methods but on 6a56df9a24
we changed some methods to be void and of course that affected the
ORM.
2017-02-12 18:38:21 +01:00
Matteo Beccati
c816d375e8
Add missing group to DDC2660Test.php
...
With the current PHPUnit version and PHP 7.2/master, the test fails with:
1) Doctrine\Tests\ORM\Functional\Ticket\DDC2660Test::testIssueWithExtraColumn
array_flip(): Can only flip STRING and INTEGER values!
2) Doctrine\Tests\ORM\Functional\Ticket\DDC2660Test::testIssueWithoutExtraColumn
array_flip(): Can only flip STRING and INTEGER values!
Due to the group being NULL vs "" on older PHP versions.
I will also file a bug report or fix to PHPUnit and/or PHP itself, but it sounds
like the missing group was just a typo.
2017-01-24 12:46:19 +01:00
Luís Cobucci
1f53afa9cd
Make sure we're using the rootEntityName on all places
...
Otherwise we might end up with duplicated cache entries and weird
results (specially regarding associations).
2017-01-19 17:24:47 +01:00
Mikhail Polyanin
bb943afabe
Optimization. Multiple get in QueryCache
2017-01-16 23:02:23 +01:00
Marco Pivetta
730db5fd2e
Merge pull request #6232 from gadelkareem/patch-3
...
Allow gearman env vars
2017-01-14 01:18:13 +01:00
Waleed Gadelkareem
109ac5f827
Allow gearman env vars
2017-01-13 18:11:10 +01:00
Waleed Gadelkareem
d137ffe0a4
Allow gearman environment vars
2017-01-13 18:09:36 +01:00
Luís Cobucci
eaedc37d7b
Fix alignment issues on DefaultCacheFactoryTest.php
2017-01-11 11:04:43 +01:00
Luís Cobucci
5a562b3571
Appends cache namespace when it exists (for L2C regions)
...
We're overriding the namespace without even checking if it was previously
set, what causes problems when people uses that feature 😉
2017-01-11 11:01:39 +01:00
Marco Pivetta
cfd595b699
#6174 #5570 removed unused imports
2016-12-18 15:46:49 +01:00
Marco Pivetta
018a5db08f
#6174 #5570 renamed entity for better fitting the use-cases it's in
2016-12-18 15:46:34 +01:00
Marco Pivetta
f39f1a2e11
#6174 #5570 removed unused test class
2016-12-18 15:45:03 +01:00
Marco Pivetta
262d13a047
#6174 #5570 adding group annotations to newly introduced test
2016-12-18 15:44:48 +01:00
Marco Pivetta
f4595d3a2f
#6174 #5570 prePersist
listeners should never be called when entities are merged, but are already in the UoW
2016-12-18 15:43:29 +01:00
Marco Pivetta
30cd2d172b
#6174 #5570 started moving tests around prePersist
event subscriber triggering on UnitOfWork
into the UnitOfWorkTest
2016-12-18 15:37:49 +01:00
Marco Pivetta
9582ffc982
#6174 #5570 CS fixes around the EntityListenersOnMergeTest
2016-12-18 14:53:54 +01:00
Marco Pivetta
00c67ba2db
#6174 #5570 adding group annotation to newly introduced tests
2016-12-18 14:47:55 +01:00
bilouwan
1be226cf63
Rename test
2016-12-15 15:12:29 +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
bilouwan
d1c8d378cf
Create failing test to reveal the issue
2016-12-15 12:47:45 +01:00
Luís Cobucci
ba9fecc43f
Remove commented code that seems to not be important
2016-12-08 18:16:11 +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
Marco Pivetta
dc3b166811
#6017 replaced random_int()
with rand()
, since we still support oldstable PHP (5.6.x)
2016-11-27 18:38:57 +01:00
Marco Pivetta
44a6141235
#6017 removed clear($entityName)
tests from UnitOfWorkTest
: now covered in EntityManagerTest
2016-11-27 18:37:45 +01:00
Marco Pivetta
92274124f9
#6017 moving tests around clear()
into the EntityManager
tests
...
`UnitOfWork` assumptions are OK, since we don't want to clutter the API even more down there
2016-11-27 18:37:45 +01:00
Marco Pivetta
49333867f8
FQCN reference correction
2016-11-27 18:36:49 +01:00
Marco Pivetta
9894dcb4b0
#6017 clear($proxyClassName)
should behave like clear($realClassName)
2016-11-27 18:36:49 +01:00
Marco Pivetta
fdb2af07e7
#6017 hardened clear()
logic, which now ensures that persisted entries are correctly cleared
2016-11-27 18:36:49 +01:00
Marco Pivetta
c1038096e0
#6017 requesting clear('nonExistingEntityName')
should raise a MappingException
2016-11-27 18:36:48 +01:00
Marco Pivetta
c97799f151
#6017 expecting an ORMInvalidArgumentException
when clearing with invalid data
2016-11-27 18:36:48 +01:00