phpcr-odm
phpcr-odm copied to clipboard
Children class Docs vs. Schema defintion
What is the correct way to define allowed children class ins XML? Docs say:
<doctrine-mapping>
<document class="ContentFolder">
<child-class>Article</child-class>
<child-class>Page</child-class>
<!-- ... -->
</document>
</doctrine-mapping>
Schema says:
<xs:complexType name="child-class">
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
looking at https://github.com/doctrine/phpcr-odm/blob/master/tests/Doctrine/Tests/ODM/PHPCR/Mapping/Model/xml/Doctrine.Tests.ODM.PHPCR.Mapping.Model.ChildClassesObject.dcm.xml i think the schema is right and the doc is wrong. do you want to fix the doc?