title: Doctrine :: Relation ManyToOne will not work
body: <p>I got a ParentClass like this</p>
  
  <pre><code>/** @ORM\MappedSuperclass */
  class BaseValue
  {
      /**
       * @var int
       *
       * @ORM\Id
       * @ORM\Column(name="id", type="integer")
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      protected $id;
  
      /**
       * @var field
       * @ORM\OneToMany(targetEntity="Field", mappedBy="value", cascade="all")
       */
      protected $field;
  
      /**
       * @return int
       */
      public function getId()
      {
          return $this-&gt;id;
      }
  
      /**
       * @param int $id
       */
      public function setId($id)
      {
          $this-&gt;id = $id;
      }
  
      /**
       * @return field
       */
      public function getField()
      {
          return $this-&gt;field;
      }
  
      /**
       * @param field $field
       */
      public function setField($field)
      {
          $this-&gt;field = $field;
      }
  }
  </code></pre>
  
  <p>And a child like this</p>
  
  <pre><code> * @ORM\Entity
   * @ORM\Table(name="integers")
   */
  class Integer extends BaseValue
  {
      /**
       * @var integer
       *
       * @ORM\Column(name="value", type="integer", nullable=true)
       */
      protected $value;
  
      /**
       * @return string
       */
      public function getValue()
      {
          return $this-&gt;value;
      }
  
      /**
       * @param string $value
       */
      public function setValue($value)
      {
          $this-&gt;value = $value;
      }
  
  }
  </code></pre>
  
  <p>Now I would like to relate the child in another class like this</p>
  
  <pre><code>* @ORM\Entity
   * @ORM\Table(name="fields")
   */
  class Field
  {
      /**
       * @var int
       *
       * @ORM\Id
       * @ORM\Column(name="id", type="integer")
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      protected $id;
  
      /**
       * @var
       * @ORM\ManyToOne(targetEntity="BaseValue", mappedBy="field", cascade="all")
       * @ORM\JoinColumn(name="vid", referencedColumnName="id")
       */
      protected $value; // but it does not work
  </code></pre>
  
  <p>It always gets me the following error: </p>
  
  <blockquote>
    <p>[Doctrine\Common\Annotations\AnnotationException]<br>
      [Creation Error] The annotation @ORM\ManyToOne declared on property zmpim\Entity\Field::$value does not have a property named "mappedBy". Available properties: targetEntity, cascade, fetch, inversedBy </p>
  </blockquote>
  
  <p>Both got mappedby,.. so the error seems to be senseless</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>A field has got values and labels. The values get inherited from BaseValue into IntegerValue, StringValue and later others... </p>
  
  <p>My OneToMany Relation is a parent class of inheritance. 
  like this, now: </p>
  
  <pre><code>/** @ORM\MappedSuperclass */
  class BaseValue
  {
      /**
       * @var int
       *
       * @ORM\Id
       * @ORM\Column(name="id", type="integer")
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      protected $id;
  
      /**
       * @var Field
       * @ORM\OneToMany(targetEntity="Field", mappedBy="field", cascade="persist", orphanRemoval=true )
       */
      protected $field;
  </code></pre>
  
  <p>And this is my ManyToOne:</p>
  
  <pre><code>/**
   * 
   * @ORM\Entity
   * @ORM\Table(name="fields")
   */
  class Field
  {
      /**
       * @var int
       *
       * @ORM\Id
       * @ORM\Column(name="id", type="integer")
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      protected $id;
  
      /**
       * @var int|null
       * @ORM\ManyToOne(targetEntity="BaseValue", inversedBy="value")
       * @ORM\JoinColumn(name="vid", referencedColumnName="id", onDelete="CASCADE")
       */
      protected $value;
  </code></pre>
  
  <p>It still give me an error, but now it is: </p>
  
  <blockquote>
    <p>[Doctrine\ORM\ORMException]<br>
          Column name <code>id</code> referenced for relation from zmpim\Entity\Field towards zmpim\Entity\BaseValue does not exist.</p>
  </blockquote>