title: How to get entity(OneToMany) field in twig
body: <p>I have to entity whohas reletionship OneToMany and ManyToOne and I find developer who have refernce and put intwig and I dont know how to visible reference intwig?
  I have entity</p>
  
  <pre><code>/**
   * Developers
   *
   * @ORM\Table(name="developers")
   * @ORM\Entity(repositoryClass="Artel\CustomerBundle\Entity\Repository\DevelopersRepository")
   */
   class Developers extends SUser
   {
   /**
  * @var integer
  *
  * @ORM\Column(name="id", type="integer")
  * @ORM\Id
  * @ORM\GeneratedValue(strategy="AUTO")
  */
  protected $id;
  
  /**
  * @ORM\OneToMany(targetEntity="CodeUserReference", mappedBy="developer", cascade={"persist"})
  */
  protected $reference_developer;
  </code></pre>
  
  <p>And entity with refernce</p>
  
  <pre><code>/**
  * Coders 24 users
  *
  * @ORM\Table(name="code_user_reference")
  * @ORM\Entity(repositoryClass="Artel\ProfileBundle\Entity\CodeUserReferenceRepository")
  */
  class CodeUserReference
  {
  /**
   * @var integer
   *
   * @ORM\Column(name="id", type="integer")
   * @ORM\Id
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  protected $id;
  
  /**
   * @ORM\ManyToOne(targetEntity="Developer", inversedBy="reference_developer")
   * @ORM\JoinColumn(name="user_talnet_file", nullable = true, referencedColumnName="id")
   * */
  protected $developer;
  
  /**
   * @ORM\Column(type="string", length=255)
   */
  protected $codereference;
  
  /**
   * @Gedmo\Timestampable(on="create")
   * @ORM\Column(type="datetime")
   */
  protected $created_at;
  </code></pre>
  
  <p>Action:</p>
  
  <pre><code>        $dev_actual_with_ref = $em-&gt;getRepository('ArtelProfileBundle:Developer')
          -&gt;getSelfAddedDevelopersR($role);
          $dev_actual_with_ref_number = count($dev_actual_with_ref);
  </code></pre>
  
  <p>and function</p>
  
  <pre><code>    public function getSelfAddedDevelopersR($role)
  {
  
  
      $qb = $this-&gt;getEntityManager()-&gt;createQueryBuilder('d');
  
      $qb
          -&gt;select('d')
          -&gt;from('ArtelProfileBundle:Developer', 'd')
          -&gt;leftJoin('d.reference_developer', 'm')
          -&gt;where('m.codereference IS NOT NULL')
          -&gt;andwhere('d.roles = :role')
          -&gt;setParameter('role', $role)
          -&gt;getQuery();
      $query = $qb-&gt;getQuery();
      $results = $query-&gt;getResult();
  
      return $results;
  
  }
  </code></pre>
  
  <p>now twig </p>
  
  <pre><code>&lt;span class="caption-subject font-green bold uppercase"&gt;dev_actual: &lt;b&gt;{{ dev_actual_with_ref_number }}&lt;/b&gt;&lt;/span&gt;
  {% for devs_actual in dev_actual_with_ref %}
  &lt;li&gt;deveoper username: &lt;b&gt;{{ devs_actual.username }}&lt;/b&gt;&lt;/li&gt;
  &lt;a href="{{ path('artel_admin_index', {'id': devs_actual.id, 'ida': developer.id}) }}"&gt;&lt;b&gt;Edit personal information&lt;/b&gt;&lt;/a&gt;
  &lt;li&gt;edit_personal_information: &lt;a href="{{ path('artel_admin_index', {'id': devs_actual.id, 'ida': developer.id}) }}"&gt;&lt;b&gt;{{ devs_actual.username }}&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
  
  
  &lt;a href="{{ path('artel_admin_index', {'id': devs_actual.id, 'ida': developer.id}) }}"&gt;&lt;b&gt;edit professional_skills&lt;/b&gt;&lt;/a&gt;
  
  &lt;li&gt;main_skills: &lt;a href="{{ path('artel_admin_index', {'id': devs_actual.id, 'ida': developer.id}) }}"&gt;&lt;b&gt;{{ devs_actual.mainskill }}&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
  
  {% for skills in devs_actual.skills %}
      &lt;ul&gt;
      &lt;li&gt;{{ skills }}&lt;/li&gt;
      &lt;/ul&gt;
  {% endfor %}
  &lt;li&gt;reference: {{ devs_actual.reference_developer.codereference ???? }}&lt;/li&gt;
  &lt;br&gt;
  {% endfor %}
  </code></pre>
  
  <p>now I have</p>
  
  <pre><code>Method "reference_developer" for object "Artel\ProfileBundle\Entity\Developer" does not exist in ArtelProfileBundle:Dachboard:dev_actual_with_ref.html.twig at line 17 
  </code></pre>
  
  <p>help please how I get refernce developer in table CodeUserReference field codereference in twig ?</p>