Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have struggled with the same issue using <a href="http://docs.doctrine-project.org/en/latest/reference/inheritance-mapping.html#single-table-inheritance" rel="nofollow">Single Table Inheritance</a>. As far as I can tell there isn't a solution to it. Even though <code>inversedBy</code> is considered compulsory, it seems you can get away with ignoring it. However, as the Doctrine docs suggest the performance deteriorates rapidly.</p> <p><code>@AssociationOverride</code> doesn't help, because you can't modify association definitions, only database column properties.</p> <p>I've tried a number of options, none of which are satisfactory.</p> <p><strong>Update:</strong> I still haven't been able to find any solution to these sorts of errors when running <code>app/console doctrine:schema:validate</code>.</p> <pre><code>[Mapping] FAIL - The entity-class 'Acme\AcmeBundle\Entity\CourseLocation' mapping is invalid: * The field Acme\AcmeBundle\Entity\CourseLocation#facilitators is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Acme\AcmeBundle\Entity\CourseFacilitatorResponsibility#courseLocation does not contain the required 'inversedBy' attribute. </code></pre> <p>In this instance <code>CourseFacilitatorResponsibility</code> is a sub-class (with single table inheritance) of <code>CourseResponsibility</code>. <code>CourseLocation</code> refers to multiple <code>CourseResponsibility</code> entities. I think uni-directional associations is the only way around it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload