```
return $this->findOneBy(array('slug' => $slug)); 
```
would be better.