i have a really simple query:

```
$query = $this->em->createQuery('SELECT u FROM UserBundle:User u WHERE u.username = ?1');
$query->setParameter(1, $username);

```

Right now i fetch my result normal as an array:

```
$data = $query->getArrayResult();
$user = $data[0];

```

Is there a way to get only one row as array directly without doing the $data[0] step?

THX for help :)