[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: |
|
||
| 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] |
| 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 ] |