php - Issues with Doctrine 2 Mappings Yaml -
i trying these mappings right cannot seem , love advice...
entities\user: type: entity onetomany: citations: targetentity: citation mappedby: user cascade: ["all"] entities\citation: type: entity manytoone: item: targetentity: item inversedby: citations joincolumn: name: item_id referencedcolumnname: id manytoone: user: targetentity: user inversedby: citations joincolumn: name: user_id referencedcolumnname: id entities\item: type: entity onetomany: authors: targetentity: author mappedby: item cascade: ["all"] onetomany: citations: targetentity: citation mappedby: item entities\author: type: entity manytoone: item: targetentity: item inversedby: authors the errors schema validator tool are:
[mapping] fail - entity-class 'entities\item' mapping invalid: * association entities\item#citations refers owning side field entities\citation#item not exist.
[mapping] fail - entity-class 'entities\citation' mapping invalid: * association entities\citation#user refers inverse side field entities\user#citations not exist.
[mapping] fail - entity-class 'entities\author' mapping invalid: * association entities\author#item refers inverse side field entities\item#authors not exist.
as can see have inverse sides, why not seeing them?
have created related properties on classes (in php files) ?
ie: entities\citation has item property ? .. property $item;
Comments
Post a Comment