title: FOSUserBundle make relationship with my own table
body: <p>Im using the FOSUserBundle in symfony2, it's works very well but I have to create for example another table like Entry, with fields:</p>
  
  <pre><code> user_id, description,...
  </code></pre>
  
  <p>I need to make a relationship between the <code>user</code> table and <code>Entry</code> table. What is the best way to make the relationship One to Many? Which class I should extend?</p>
  
  <p>I get this error:</p>
  
  <p><code>Entry has no association named ApplicationSonataUserBundle:User</code></p>
  
  <p>My code is:</p>
  
  <pre><code>   /**
   *
   * @ORM\ManyToOne(targetEntity="\Application\Sonata\UserBundle\Entity\User",  inversedBy="entry")
   * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  */
  
  protected $users;
  </code></pre>
  
  <p>I use this instruccion:</p>
  
  <pre><code>   $em = $this-&gt;getDoctrine()-&gt;getEntityManager();
  $query = $em-&gt;createQuery('SELECT b
                                 FROM LoggerFrontendBundle:Entry a JOIN a.ApplicationSonataUserBundle:User b
                         ') ;
  </code></pre>
  
  <p>Thanks</p>