[PHPCR-77] document level options inheritance Created: 06/Aug/12  Updated: 03/Jul/13  Resolved: 03/Jul/13

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

Type: Improvement Priority: Blocker
Reporter: David Buchmann Assignee: Lukas Kahwe
Resolution: Fixed Votes: 0
Labels: None


 Description   

documents extending other documents should inherit the global attributes unless overwritten explicitly.

for example, having @Document(referenceable=true) should be kept for an extending class unless it explicitly sets it to false. currently, attributes are reset on each new @Document tag. (i assume we have the same issue for xml/yml mapping?)



 Comments   
Comment by David Buchmann [ 01/Nov/12 ]

this is fixed for referenceable in https://github.com/doctrine/phpcr-odm/pull/185

Comment by David Buchmann [ 05/May/13 ]

when doing this, we should also fix MappedSuperclass annotation to support all attributes the Document has. in xml mappings mapped-superclass extends document

Comment by David Buchmann [ 03/Jul/13 ]

https://github.com/doctrine/phpcr-odm/pull/294

Generated at Fri Sep 19 11:49:32 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.