phpcr-odm icon indicating copy to clipboard operation
phpcr-odm copied to clipboard

Children class Docs vs. Schema defintion

Open ElectricMaxxx opened this issue 6 years ago • 1 comments

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>

ElectricMaxxx avatar Jun 24 '18 04:06 ElectricMaxxx

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?

dbu avatar Aug 11 '18 08:08 dbu