I am working through doctrine and zend framework 2, and while updating the controller class code i got the following error message
Undefined method 'getFkcountryByName'. The method name must start with either findBy or findOneBy!
$country = $entityManager->getRepository('\Synchro\Entity\Geographicalarea')->getFkcountryByName($geographical ['nom_departement']);
how can i resolved that ,thanks