doctrine/mongodb-odm — Issue #186: Query->first() does not work
Author: cbou
Created: 2011-11-05 12:17:18+00:00
State: open

This code does not work for me:

```php

$repository->
createQueryBuilder()->
getQuery()->
first()
```

I get this error:

```php
Fatal error: Call to undefined method Doctrine\ODM\MongoDB\LoggableCursor::first()
in /path/to/vendor/doctrine-mongodb/lib/Doctrine/MongoDB/Query/Query.php on line 258
```