Marco Pivetta
ab0e854830
#6174 #5570 CS - spacing
2016-12-18 14:39:46 +01:00
Marco Pivetta
85e2dc8f22
#6174 #5570 CS - spacing
2016-12-18 14:38:10 +01:00
Marco Pivetta
3ce262a61a
#6174 #5570 flattened nested conditionals
2016-12-18 14:36:39 +01:00
Marco Pivetta
81d44d4d6e
#6174 #5570 documenting thrown exception types
2016-12-18 14:32:31 +01:00
Marco Pivetta
754f36ef65
#6174 #5570 CS - alignment
2016-12-18 14:27:35 +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
493d39f5df
doMerge will mergeEntityStateIntoManagedCopy BEFORE persistNew to let lifecyle events changes be persisted
2016-12-15 12:49:11 +01:00
bilouwan
d1c8d378cf
Create failing test to reveal the issue
2016-12-15 12:47:45 +01:00
Thomas Landauer
879d4e7df0
Update working-with-associations.rst
2016-12-14 21:46:18 +01:00
Thomas Landauer
29062fb42e
Update working-with-associations.rst
2016-12-14 21:39:47 +01:00
Thomas Landauer
a06f8d4759
Update working-with-associations.rst
2016-12-14 21:38:10 +01:00
Thomas Landauer
6aa81d1d36
Include example of a cascaded "persist" operation
...
Following up on https://github.com/doctrine/doctrine2/issues/2943 I started to clarify how it's supposed to be done.
Please check if this would be necessary (at line 511):
`$myFirstComment->setUser($user);`
...and add it (in case).
2016-12-14 00:10:39 +01:00
Marco Pivetta
6e6be3fdd9
Merge pull request #6164 from eyepin/patch-1
...
Update EntityGenerator.php
2016-12-12 08:30:16 +01:00
Marco Pivetta
24377156b4
Merge pull request #6166 from lcobucci/use-php56-features
...
Normalise codebase with PHP 5.6 features
2016-12-12 08:03:43 +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
512aa8a3c7
Use "::class" syntax on "lib" directory
2016-12-08 17:09:35 +01:00
Luís Cobucci
234989d069
Use short-array syntax on "lib" directory
2016-12-08 00:31:12 +01:00
Luís Cobucci
c609072ce1
Use short-array syntax on "bin" directory
2016-12-07 23:34:14 +01:00
Luís Cobucci
74c8a08828
Use short-array syntax on "tests" directory
2016-12-07 23:33:41 +01:00
Luís Cobucci
1d5e16e9d9
Use short-array syntax on "tools" directory
2016-12-07 23:32:17 +01:00
eyepin
521588f498
Update EntityGenerator.php
...
orm:generate:entities genrates 2 blank lines
PSR2: All PHP files MUST end with a single blank line.
this worked for me
2016-12-07 13:13:21 +01:00
Marco Pivetta
6af1d2843f
Bumping doctrine/common dependency to allow ^2.7.1
2016-12-04 06:55:26 +01:00
Marco Pivetta
555e8ae641
Merge branch 'fix/#6017-check-entity-name-in-clear-call-should-be-a-string'
...
Close #6017
2016-11-27 18:39:55 +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
53c5824a6b
#6017 removed clear($entityName)
parameter validity checks
...
The `UnitOfWork` is advanced stuff: don't touch if you don't know what you are doing.
2016-11-27 18:37:45 +01:00
Marco Pivetta
1d7397caf0
#6017 moving entity name validity checks into the EntityManager
API, documenting newly thrown exception types
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
dffd765b1e
#6017 requesting clear('nonExistingEntityName')
now raises a MappingException
2016-11-27 18:36:48 +01:00
Marco Pivetta
c1038096e0
#6017 requesting clear('nonExistingEntityName')
should raise a MappingException
2016-11-27 18:36:48 +01:00
Marco Pivetta
8f77afdc34
#6017 removed unused ORMException::invalidEntityName
2016-11-27 18:36:48 +01:00
Marco Pivetta
754e1f5d42
#6017 throwing an ORMInvalidArgumentException
when clearing with non-string data. Also removing duplicate null checking
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
Marco Pivetta
56598596a4
#6017 adding @group
annotation to newly introduced tests
2016-11-27 18:36:48 +01:00
Marco Pivetta
6ad9c9ea04
#6017 test coverage for ORMInvalidArgumentException::invalidEntityName
2016-11-27 18:36:48 +01:00
Marco Pivetta
c4d41fe56a
#6017 moved ORMException::invalidEntityName
to ORMInvalidArgumentException::invalidEntityName
2016-11-27 18:36:48 +01:00
Jeremy Benoist
6b1d64d484
Remove unecessary persist in tests
2016-11-27 18:36:48 +01:00
Jeremy Benoist
be4aafd4f6
Use ORMException instead of a default exception
2016-11-27 18:36:48 +01:00
Jeremy Benoist
2a7d21ad18
Throw an exception instead of a workaround
2016-11-27 18:36:48 +01:00
Jeremy Benoist
4a87f00fab
Avoid error when entityName isn't a string
2016-11-27 18:36:48 +01:00
Marco Pivetta
77a338e0fd
Merge branch 'fix/#5935-#5684-#6020-#6152-id-generator-convert-to-custom-dbal-id-type'
...
Close #5935
Close #5684
Close #6020
Close #6152
2016-11-27 17:49:54 +01:00
Marco Pivetta
cff5c07014
#5935 #5684 #6020 #6152 removed useless NAME
constant from the test
2016-11-27 17:49:09 +01:00
Marco Pivetta
73ea0ba8f3
#5935 #5684 #6020 #6152 adding description to the test scenario
2016-11-27 17:45:50 +01:00
Marco Pivetta
e736d19677
#5935 #5684 #6020 #6152 extracted identifier conversion to a private method
2016-11-27 17:42:12 +01:00