[PHPCR-78] Exception "Can't remove the protected property: jcr:created" on persist Created: 10/Aug/12  Updated: 30/Aug/12  Resolved: 30/Aug/12

Status: Resolved
Project: Doctrine PHPCR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: damien pitard Assignee: Lukas Kahwe
Resolution: Fixed Votes: 0
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



 Comments   
Comment by damien pitard [ 28/Aug/12 ]

here's a functional test to reproduce the bug https://github.com/pitpit/phpcr-odm/commit/a7e1ba83d78771599181d2dee3c03c5163cf26e7

Comment by Lukas Kahwe [ 30/Aug/12 ]

fixed by https://github.com/doctrine/phpcr-odm/pull/158

Generated at Fri Apr 25 04:26:41 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.