Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Labels:None
-
Environment:* phpcrodm #fc47314043805c1b8d1e998d534abec75874a8e5
* jackalope #6de09e160a2d56b34d34e8120a254fbe46892fb7
* jackalope-jackrabbit #3c4fb61bf0c0664d09ef520683842e6426c033e0
Description
When a Document contains a reference field (tested with @ReferenceMany(strategy="hard"), @ReferenceOne(strategy="hard")) and a "jcr:created" field in its metadata, then phpcr-odm try to update the protected field (jcr:created) to NULL on persist.
Jackalope throws the following exception :
[PHPCR\NodeType\ConstraintViolationException]
Can't remove the protected property: jcr:created
fixed by https://github.com/doctrine/phpcr-odm/pull/158