replace this line with $findUser = $em->getRepository('Seeder\FrontendBundle\Entity\User')->findOneBy(array('userEmail' => $user_profile['email']));