title: How to set fixed entity relation in Doctrine 2
body: <p>I have abstract entity (App - base core):</p>
  
  <pre><code>namespace App\Bundles\AppBundle\Entity;
  
  abstract class App extends ContainerAware implements AppInterface
  {
  // .....
  }
  </code></pre>
  
  <p>and self entity:</p>
  
  <pre><code>namespace AppRus\Bundles\AppBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM,
      App\Bundles\AppBundle\Entity\App as BaseApp;
  
  /**
   * App
   *
   * @ORM\Table(name="apps")
   * @ORM\Entity(repositoryClass="AppRus\Bundles\AppBundle\Entity\AppRepository")
   */
  class App extends BaseApp
  {
    // ....
  }
  </code></pre>
  
  <p>and entity for control revisions:</p>
  
  <pre><code>namespace App\Bundles\AppBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * AppHistory
   *
   * @ORM\Table(name="apps_history")
   * @ORM\Entity(repositoryClass="App\Bundles\AppBundle\Entity\AppHistoryRepository")
   */
  class AppHistory
  {
      /**
       * @var integer
       *
       * @ORM\ManyToOne(targetEntity="App\Bundles\AppBundle\Entity\App")
       * @ORM\JoinColumn(name="app_apple_id", referencedColumnName="apple_id")
       */
      private $app;
  }
  </code></pre>
  
  <p>I can't create relation AppHistory#app to App#apple_id</p>
  
  <p>When I set entity to abstract class App, then doctrine create a new table "App"
  When I set MappedSuperClass to abstract class App, I have error: <a href="http://docs.doctrine-project.org/en/latest/reference/inheritance-mapping.html#mapped-superclasses" rel="nofollow">http://docs.doctrine-project.org/en/latest/reference/inheritance-mapping.html#mapped-superclasses</a></p>
  
  <p>How can I create relation from AppHistory to abstract core App?</p>