I want to get one single value from entity.Can anyone help me here.
Here is my code.Please let me know what is missing here.

```
$query = $em->createQuery("SELECT e FROM AdminBundle:MailTemplates e  WHERE e.keyword = '" .$keywordVal."'");
$query->execute();
$result = $query->getResult();
echo $result ->getId(); 

```

Here i want the 'id'.