Marius Klocke
b952dac339
Add a failing test for issue 7062
2018-02-26 14:39:05 +01:00
Jan Langer
e68717b725
Fix updating entities with quoted identifier association
2018-02-25 20:10:18 +01:00
Vašek Henzl
23f4f03575
Add failing tests for #6531
...
Tests are based on examples from "Composite and Foreign Keys as Primary Key" tutorial:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/composite-primary-keys.html
2018-02-19 22:14:57 +01:00
Kevin Bond
15a4302902
Inheritance middle-layer doesn't get hydrated with HYDRATE_OBJECT
2018-02-19 12:07:41 +01:00
Luís Cobucci
44e82e2720
Remove unused functions
2018-02-17 19:49:16 +01:00
Luís Cobucci
e94467d6da
Fix incorrect value in L2C+lock test
...
Which was causing the optimistic lock to fail in MySQL since it was
trying to update the data with exact same value.
2018-02-17 19:46:22 +01:00
‘Andrey Lukin’
8fc1d74820
Add test for L2C using optimistic locks
...
As explained in #7067 , fields with `@ORM\Version` annotation were not
being added to L2C cached data.
2018-02-17 18:05:27 +01:00
Luís Cobucci
7873f700b0
Add missing tests for day calculation
...
For the DATE_SUB() and DATE_ADD() functions.
2018-02-09 17:21:06 +01:00
Luís Cobucci
46c0861f45
Fix date calculation in tests (again)
...
Now using PHP to calculate the expected date manipulation, keeping a day
as delta since PHP resets the hour when performing operations with
days/weeks/months/years.
February is a wonderful month, isn't it?
2018-02-09 17:21:06 +01:00
Michael Moravec
cf99d62472
QueryDqlFunctionTest: Increase delta for testDateAdd() to work in February
2018-02-02 08:59:35 +01:00
foaly-nr1
b211dd4db7
Add failing test for misleading exception message
...
Describes: https://github.com/doctrine/doctrine2/issues/6029
2017-11-26 17:55:59 +01:00
Sasha Alex Romanenko
b3331b2237
Enforce sequence XSD requirement
...
Supply default values for allocationSize and initialValue optional parameters.
Related to: https://github.com/doctrine/doctrine2/issues/6682
2017-11-26 16:33:27 +01:00
Mathieu Duplouy
15c145f3b3
Add failing test for DCOM-288
...
Reported on: https://github.com/doctrine/common/issues/600
2017-11-26 13:54:54 +01:00
Michael Moravec
4bbb1067ac
Add failing test for #6699
2017-11-24 02:42:59 +01:00
Luís Cobucci
59792654c0
Improve tests for DATE_ADD and DATE_SUB
...
So that we can do proper assertions and cover all the possibilities
of the functions.
2017-10-31 15:48:26 +01:00
Sébastien Lévêque
f277eef6ea
Add support second, minute, week, year on DATE_ADD and DATE_SUB
2017-10-29 21:48:40 +01:00
Grégoire Paris
ffd3d34f34
Disable uuid generation
...
Apparently, setting a value by hand is not enough to avoid it.
2017-10-14 12:39:58 +02:00
Grégoire Paris
57e9feffb2
Avoid uuid generation
...
pg needs an extra module to do this, so let's spare us that and set them
manually.
2017-10-14 12:39:58 +02:00
Grégoire Paris
6b5c97055c
Set null on delete, at database level
2017-10-14 12:39:57 +02:00
Grégoire Paris
30fccf8e83
Proove orphan-removal on many-to-one is useless
2017-10-14 12:39:57 +02:00
Marco Pivetta
66f903a38f
#6759 remove #
symbol from @group
annotation as per @lcobucci's review
...
Ref: https://github.com/doctrine/doctrine2/pull/6760#discussion_r143353225
2017-10-08 14:26:45 +02:00
Marco Pivetta
83e00d5010
#6759 cleaning up test case, using new models from the isolated namespace
2017-10-07 12:52:34 +02:00
Marco Pivetta
6ba2d1c317
#6759 cleaning up test case body
2017-10-07 10:09:44 +02:00
Jan Langer
5f99cad669
Failing test - inverse side OneToOne loaded without identifier condition
2017-10-06 17:34:34 +02:00
Dariusz Ruminski
c7d6d62393
Use newer PHP syntax
2017-09-06 01:32:49 +02:00
Marco Pivetta
922c55f5dd
Replacing direct quote
model-set schema creation with actually existing model-set setup
2017-08-26 14:15:05 +02:00
Marco Pivetta
660f164568
#6284 #6217 s/$this->assert/self::assert as per @lcobucci's review
2017-08-25 09:21:12 +02:00
Marco Pivetta
c9d1f852de
#6284 removing unused lazy entity
2017-08-22 21:41:04 +02:00
Marco Pivetta
c29a1e96b7
#6284 removing unused separate class
2017-08-22 21:40:42 +02:00
Marco Pivetta
a2f4053a81
#6284 renaming variables, classes and properties to fit tested behavior
2017-08-22 21:38:44 +02:00
Marco Pivetta
3f09e20955
#6284 correcting alignment, removing stuff that isn't strictly needed
2017-08-22 21:31:01 +02:00
Marco Pivetta
220dc79ebf
#6284 renaming entities to match the scope of this test
2017-08-22 21:29:27 +02:00
Marco Pivetta
6f6e88cfb6
#6284 adding assertions about equality of the loaded classes
2017-08-22 21:27:46 +02:00
Marco Pivetta
dac1ce4172
#6284 removing profile entity, since it is not needed to reproduce the issue
2017-08-22 21:21:53 +02:00
Marco Pivetta
ca39abcd71
#6284 reducing annotation mapping clutter
2017-08-22 21:17:14 +02:00
Marco Pivetta
4e0b76ce69
#6284 eager fetching is strictly required to verify the issue
2017-08-22 21:14:38 +02:00
Marco Pivetta
805ba041ef
#6284 reducing annotation mapping clutter
2017-08-22 21:12:45 +02:00
Marco Pivetta
3842ad8ea1
#6284 simplifying tests to a minimum, removing unused auto-generated id field
2017-08-22 21:11:03 +02:00
Marco Pivetta
c7281f6ade
#6284 simplifying tests to a minimum, removing unused auto-generated id field
2017-08-22 21:08:06 +02:00
Waleed Gadelkareem
309b286ed3
Add tests for #6217
2017-08-22 19:45:26 +02:00
Marco Pivetta
4cbcdb761a
#6303 #6304 documenting that the discriminator map order is extremely important for this test
2017-08-19 18:25:44 +02:00
Marco Pivetta
b66643d52e
#6303 #6304 removing useless union type usage
2017-08-19 17:49:14 +02:00
Marco Pivetta
42d9162bd5
#6303 #6304 re-enabling disabled test code data
2017-08-19 17:47:12 +02:00
Marco Pivetta
8af68614fc
#6303 #6304 correcting type mapping. For simple_array
, [] == null
(which is bullshit), so we use array
here
2017-08-19 17:45:26 +02:00
Marco Pivetta
764ab59882
#6303 #6304 making unnecessary visible fields private
2017-08-19 17:06:27 +02:00
Marco Pivetta
468496be1a
#6303 #6304 using strict types in the tests
2017-08-19 17:05:44 +02:00
Marco Pivetta
e18fb6607d
#6303 #6304 removing duplicate test details
2017-08-19 17:04:26 +02:00
Marco Pivetta
2ab363ab82
#6303 #6304 adding void
hints where applicable
2017-08-19 16:53:41 +02:00
Marco Pivetta
0882b10213
#6303 #6304 simplified tests, removing references to contract
naming
2017-08-19 16:51:31 +02:00
Marco Pivetta
328467c226
#6303 #6304 simplified tests, removing references to contract
naming
2017-08-19 16:48:50 +02:00