For such a simple query we can use provided helper
```php
 $em->getRepository('Entities\FeedPublisher')->findOneBy(array('usr_id' => $user->getid(), 'feed' => $feed->getId()));
```