title: OneToMany Relation on cross project entities (Symfony2/Doctrine)
body: <p>Anybody knows how to accomplish a <code>OneToMany</code> relation within 2 projects (let's say cross-database wise, both have their own project structure, namespaces and database).</p>
  
  <p>Let's say I have one Entity in Project A:</p>
  
  <p><strong>Movie.php (Entity Project A)</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>class Movie {
  
      // ... some other properties
  
      /**
       * @ORM\OneToMany(targetEntity="Moviechild/Project B", mappedBy="movie")
       */
      protected $moviechilds;
  
      // ...
  </code></pre>
  
  <p>and another Entity in Project B:</p>
  
  <p><strong>Moviechild.php (Entity Project B)</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>class Moviechild {
  
      // ...
  
      /**
       * @ORM\ManyToOne(targetEntity="Movie/Project A", inversedBy="moviechilds")
       * @ORM\JoinColumn(name="movie_id", referencedColumnName="id")
       */
      protected $movie;
  
      // ...
  </code></pre>