title: An exception has been thrown during the rendering of a template ("Notice: Array to string conversion")
body: <p>when i have to cheak personne details i have the problem and this is my twig</p>
  
  <pre><code>&lt;div class="box-body"&gt;
                      &lt;fieldset&gt;
                          &lt;table class="table table-sm table-striped "&gt;
                              {% for famille in familles %}
                                  &lt;tr&gt;
                                      &lt;th&gt;- Code&lt;/th&gt;
                                      &lt;td class="text-info"&gt;{{ famille.enfant }}&lt;/td&gt;
                                      &lt;td class="text-info"&gt;{{ famille.lien }}&lt;/td&gt;
  
  
                                  &lt;/tr&gt;
                              {% endfor %}
  
                          &lt;/table&gt;
                      &lt;/fieldset&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>and this is my personneType</p>
  
  <pre><code>-&gt;add('familles', CollectionType::class, array(
                      'label' =&gt; 'Familles',
                      'entry_type' =&gt; FamilleType::class,
                      'allow_add' =&gt; true,
                      'by_reference' =&gt; false,
                      'prototype' =&gt; true,
                      'allow_delete' =&gt; true,
  
  
  
  
                  ))
  </code></pre>
  
  <p>the personne entity like this</p>
  
  <pre><code> /**
       * @ORM\OneToMany(targetEntity="IT\ITBundle\Entity\Famille",cascade={"persist","remove"}, mappedBy="personne")
       * @ORM\JoinColumn(name="enfant_id", referencedColumnName="id")
       */
      private $familles;
   /**
       * Get familles
       *
       * @return \Doctrine\Common\Collections\Collection
       */
      public function getfamilles()
      {
          return $this-&gt;familles;
      }
  </code></pre>
  
  <p>and the familly entity is like this </p>
  
  <pre><code>&lt;?php
  
  namespace IT\ITBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Famille
   * @ORM\Table(name="famille")
   * @ORM\Entity(repositoryClass="IT\ITBundle\Repository\FamilleRepository")
  
   */
  
  class Famille
  {
      /**
       * @var int
       *
       * @ORM\Column(name="id", type="integer")
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      private $id;
  
      /**
       * @var string
       *
       * @ORM\Column(name="lien", type="string", length=255, nullable=true)
       */
      private $lien;
  
      /**
       * @ORM\ManyToOne(targetEntity="IT\ITBundle\Entity\Personne", inversedBy="familles")
       * @ORM\JoinColumn(name="enfant_id", referencedColumnName="id")
  
       */
  
      private $personne;
      /**
       * @ORM\ManyToOne(targetEntity="IT\ITBundle\Entity\Personne", inversedBy="familles")
       * @ORM\JoinColumn(name="personne_id", referencedColumnName="id")
  
       */
      private $enfant;
  
      /**
       * Get id
       *
       * @return integer
       */
      public function getId()
      {
          return $this-&gt;id;
      }
  
      /**
       * Set lien
       *
       * @param string $lien
       * @return Famille
       */
      public function setLien($lien)
      {
          $this-&gt;lien = $lien;
  
          return $this;
      }
  
      /**
       * Get lien
       *
       * @return string
       */
      public function getLien()
      {
          return $this-&gt;lien;
      }
  
      /**
       * Set personne
       *
       * @param \IT\ITBundle\Entity\Personne $personne
       *
       * @return Personne
       */
      public function setPersonne(\IT\ITBundle\Entity\Personne $personne = null)
      {
          $this-&gt;personne = $personne;
  
          return $this;
      }
  
      /**
       * Get personne
       *
       * @return \Doctrine\Common\Collections\ArrayCollection
       */
      public function getPersonne()
      {
          return $this-&gt;personne;
      }
  
      /**
       * Set enfant
       *
       * @param \IT\ITBundle\Entity\Famille $enfant
       *
       * @return Personne
       */
      public function setEnfant($enfant)
      {
          $this-&gt;enfant = $enfant;
  
          return $this;
      }
  
      /**
       * Get enfant
       *
       * @return Personne
       */
      public function getEnfant()
      {
          return $this-&gt;enfant;
      }
  }
  </code></pre>
  
  <p>so i wanna show the 'lien'and 'personne' in the details but it gives me this error</p>
  
  <p>An exception has been thrown during the rendering of a template ("Notice: Array to string conversion").
  thinks</p>