title: Extending Entities in Symfony with relationships carried over
body: <p>I am trying to extend one of my Entities (Class A) in my Symfony Doctrine, it is working well but when I try to update the schema to create the new Entity (Class B) I am missing some fields from the extended Entity Class (Class A).</p>
  <p>There are two Many-To-One relationships in the parent class (Class A), that I am trying to extend which are being emitted from the new Entity (Class B).</p>
  <p>Here is one of the relationships in Class A that should be carried over:</p>
  <pre><code>/**
   * @ORM\ManyToOne(targetEntity=&quot;App\Entity\LessonSectionActivity&quot;)
   * @ORM\JoinColumn(nullable=true)
   */
  private $lessonSectionActivity;
  </code></pre>
  <p>Variables like this are fine and are picked up by Class B:</p>
  <pre><code>/**
   * @ORM\Column(type=&quot;integer&quot;)
   */
  private $score;
  </code></pre>
  <p>I have tried directly placing the relationships in the entity file of the new class (Class B) but there is still no doctrine update carrying over these relationships. Do I need to make an entire new Entity with a Repository or is there a way to carry over these relationships?</p>