$query = $em->createQuery('SELECT u FROM Entity\User u where u.first_name = :name');
$query->setParameter('name', 'Fawad');
$users = $query->getResult();
foreach ($users as $items) {
echo $items->getId() . " " . $items->getFirstName() . "<br>";
}