Marco Pivetta
fb95116a26
Merge pull request #6101 from malukenho/add-license-checker
...
Add license checker to the build
2016-10-27 01:16:18 +02:00
Jefersson Nathan
83da3d4b04
Revert "composer require --dev malukenho/docheader"
...
This reverts commit 81fefb40dbd6b7b6f913501616075ecc779a1742.
2016-10-26 13:27:38 -03:00
Jefersson Nathan
5c6ecdcf1b
Revert "add license template file"
...
This reverts commit e4050edb4ecc76de625547343ed4431fa64f230c.
2016-10-26 13:27:29 -03:00
Jefersson Nathan
dc07fc609e
Revert "add license checker to the build"
...
This reverts commit ca1a9473d3348cd0ed727ba6f2a5bfebe0ab4915.
2016-10-26 13:27:18 -03:00
Jefersson Nathan
dbe843fc4b
remove license from header of test files
2016-10-26 13:24:33 -03:00
Jefersson Nathan
b8a18cd0a1
fix license header inconsistencies
2016-10-25 23:58:42 -03:00
Jefersson Nathan
ca1a9473d3
add license checker to the build
2016-10-25 23:53:17 -03:00
Jefersson Nathan
e4050edb4e
add license template file
2016-10-25 23:52:07 -03:00
Jefersson Nathan
81fefb40db
composer require --dev malukenho/docheader
2016-10-25 23:51:31 -03:00
Marco Pivetta
26cf90e1c5
Merge pull request #6095 from mschroeder/patch-1
...
Fixed typo in annotations reference
2016-10-25 05:56:54 +02:00
Marco Pivetta
cf1ba3183d
Merge pull request #6089 from damour/master
...
Remove duplicated enum type comment from declaration.
2016-10-25 05:48:57 +02:00
Garanzha Dmitriy
3861cbf317
Remove duplicated enum type comment from declaration.
2016-10-21 11:30:27 +03:00
Martin Schröder
cdad5a82c5
Fixed typo in annotations reference
2016-10-20 13:32:59 +02:00
Marco Pivetta
d6eddab94f
Revert "Merge pull request #6092 from ThomasLandauer/patch-2"
...
This reverts commit ade3f3a7f36d4b8a2ccf14afd4b71e7b0d0509da, reversing
changes made to a6e44d9305114c2a597bd7db2bb934f2c2325ed3.
2016-10-18 10:00:10 -07:00
Marco Pivetta
ade3f3a7f3
Merge pull request #6092 from ThomasLandauer/patch-2
...
Updated a link (hopefully :-)
2016-10-18 09:46:53 -07:00
Thomas Landauer
d3c2c40452
Updated a link (hopefully :-)
2016-10-18 18:21:46 +02:00
Marco Pivetta
a6e44d9305
Merge pull request #6087 from chihiro-adachi/fix-namespace
...
Fix namespace
2016-10-18 07:12:22 -07:00
chihiro-adachi
42c4938a8b
cache -> cached
2016-10-18 12:09:43 +09:00
chihiro-adachi
fb1136cc9a
adjust the appearance of the table
2016-10-15 15:47:49 +09:00
chihiro-adachi
03da85e19e
fix namespace
2016-10-15 15:41:10 +09:00
Marco Pivetta
a353cb81a3
Merge pull request #6080 from ThomasLandauer/patch-1
...
Fixed typo + added link
2016-10-11 17:02:07 +02:00
Thomas Landauer
277833b487
Fixed typo + added link
2016-10-11 16:59:03 +02:00
Marco Pivetta
47cb963731
Merge pull request #6070 from Dreamlex/master
...
Update events.rst
2016-10-06 02:40:04 +02:00
alexndlm
fc81760b54
Update events.rst
...
https://github.com/doctrine/doctrine2/pull/169
2016-10-05 14:16:47 +03:00
Marco Pivetta
cd11723e63
Merge branch 'fix/#5768-#5755-clone-proxy-private-properties-in-multi-level-inheritances'
...
Close #5768
Close #5755
2016-09-10 20:51:27 +02:00
Marco Pivetta
3fca33bdc4
#5768 #5755 cleaned up test scenario, using new mocking logic as per PHPUnit 5.4+
2016-09-10 20:45:01 +02:00
Ed Hartwell Goose
67e205b36a
Fixes #5755 , uses '->getReflectionProperties()' instead of '->getReflectionClass()->getProperties()' to ensure all fields are copied, and adds test to confirm behaviour
2016-09-10 20:37:20 +02:00
Marco Pivetta
22105058fa
Merge branch 'fix/#5689-avoid-object-hash-conflicts-due-to-merge-operations'
...
Close #5689
2016-09-10 20:22:52 +02:00
Marco Pivetta
503b211a22
#5689 removed unused reflection access
2016-09-10 20:19:15 +02:00
Marco Pivetta
f8436b2165
#5689 removed OidReuseTest
, which was moved to UnitOfWork
tests
2016-09-10 20:15:59 +02:00
Marco Pivetta
75bf197e11
#5689 moved OidReuseTest
contents into the UnitOfWork
tests
2016-09-10 20:15:33 +02:00
Mathieu De Zutter
44af69c5d2
Additional assertion to check that unreferenced objects are not in UOW.
2016-09-09 23:22:31 +02:00
Mathieu De Zutter
b8c7d871be
Remove old code in comments.
2016-09-09 23:22:31 +02:00
Mathieu De Zutter
01d51bfca3
Avoid conflicts due to spl_object_hash().
...
When merging an entity with a to-many association, it will store the
original entity data using the object hash of the to-be-merged entity
instead of the managed entity. Since this to-be-merged entity is not
managed by Doctrine, it can disappear from the memory. A new object
can reuse the same memory location and thus have the same object hash.
When one tries to persist this object as new, Doctrine will refuse it
because it thinks that the entity is managed+dirty.
This patch is a very naive fix: it just disables storing the original
entity data in case of to-many associations. It may not be the ideal
or even a good solution at all, but it solves the problem of object
hash reuse.
The test case relies on the immediate reusing of memory locations by
PHP. The variable $user has twice the same object hash, though referring
a different object. Tested on PHP 5.6.17
Without the fix, the test fails on the last line with:
A managed+dirty entity Doctrine\Tests\Models\CMS\CmsUser@[...] can not
be scheduled for insertion.
2016-09-09 23:22:31 +02:00
Marco Pivetta
3e3bfbf6d8
Merge pull request #6013 from guhelski/fix_typo
...
Documentation - Fix typo
2016-09-09 21:31:41 +02:00
guhelski
60346e0046
Fix typo
2016-09-09 16:46:35 +02:00
Guilherme Blanco
81f4d3b0fb
Merge pull request #6011 from lcobucci/refactor/use-method-instead
...
Use `ClassMedatada#isIdGeneratorIdentity()` instead of constant to add the ID on query
2016-09-09 10:25:00 -04:00
Luís Cobucci
e43b9e9e3a
Use isIdGeneratorIdentity()
to add the ID on query
...
It's quite handy when creating CUSTOM id generators that should also
rely on AUTO_INCREMENT stuff (one can just extend the `ClassMedatadaFactory`
and create a different instance of `ClassMetadata` that overrides that
method).
2016-09-09 07:52:44 +00:00
Marco Pivetta
e7e142ea4a
Merge pull request #6010 from phansys/entity_repo_count
...
Update exception message at `EntityRepository::__call()`
2016-09-08 19:21:06 +02:00
Javier Spagnoletti
5353137617
Update exception message at EntityRepository::__call()
2016-09-08 13:32:06 -03:00
Marco Pivetta
009e94720b
Merge branch 'fix/#6001-second-level-cache-query-cache-timestamp-from-region'
...
Close #6001
2016-09-08 14:02:16 +02:00
Marco Pivetta
d27cffa8e6
#6001 documenting minor BC break in QueryCacheEntry#time
type - specific version used
2016-09-08 13:51:21 +02:00
Luís Cobucci
dd476094af
The timestamp verification is now done by the validator
...
So it's useless to keep it here too.
2016-09-08 13:50:06 +02:00
Luís Cobucci
b431332cef
Evict query cache when entities are updated
2016-09-08 13:50:06 +02:00
Luís Cobucci
b49026b657
Add timestamp key to QueryCacheKey
2016-09-08 13:50:06 +02:00
Luís Cobucci
16a3a2a132
Use microtime to have more precision on cache time
2016-09-08 13:50:06 +02:00
Marco Pivetta
5eebdcf630
Merge branch 'fix/#6004-#5989-fix-hydration-in-a-joined-inheritance-with-simple-array-or-json-array'
...
Close #6004
Close #5989
2016-09-08 13:39:10 +02:00
Carl Vuorinen
43d22984ae
Add unit test for SimpleObjectHydrator
2016-09-08 13:37:00 +02:00
Carl Vuorinen
d2cbd5e872
PR fixes (public properties & correct letter case in annotations)
2016-09-08 13:37:00 +02:00
Carl Vuorinen
00bbf4f523
Use yoda condition in the null check
2016-09-08 13:37:00 +02:00