title: Fatal error: Function name must be a string doctrine and Zend 2
body: <p>I have class contains Foreign key and i want insert this foreign key in my class </p>
  
  <p>I do that script with doctrine 2 and zend 2 :</p>
  
  <pre><code>$geographicalarea = new Geographicalarea();
  $geographicalarea = $entityManager()-&gt;getRepository('\Synchro\Entity\Geographicalarea')-&gt;find (array('idGeographicalArea'=&gt; $idgeographicalarea ));
  
  echo "Create ";
  $department = new Department();
  $department-&gt;setNamedepartment($data ['nameDepartment']);
  $department-&gt;setCodedepartment($data ['codeDepartment']);
  $department-&gt;setIdfkgeographicalarea($geographicalarea);
  </code></pre>
  
  <p>and I get this Error :</p>
  
  <blockquote>
    <p>Fatal error: Function name must be a string in
    C:\wamp\www\imprimvert\module\Synchro\src\Synchro\Service\DepartmentManager.php
    on line 88</p>
  </blockquote>
  
  <pre><code>$geographicalarea = $entityManager()-&gt;getRepository('\Synchro\Entity\Geographicalarea')-&gt;find (array('idGeographicalArea'=&gt; $idgeographicalarea ));
  </code></pre>
  
  <p>how can I resolved that ?</p>
  
  <p>Thanks in advance</p>