Skip to content

Commit

Permalink
Update README for v0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Eckerstorfer committed Feb 11, 2015
1 parent 4529d6a commit 414758a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,27 @@ $pdo = new \PDO(...);
$nqm = new NQM($pdo, $cache);
```

### Doctrine Bridge

If you don't have a `PDO` object, but a Doctrine `EntityManager` object you can use the Doctrine bridge to create
a new `NQM` object.


```php
use Cocur\NQM\Bridge\Doctrine\NQMFactory;

$nqm = NQMFactory::createFromEntityManager($entityManager, $queryLoader);
// NQM(...) object
```


Change log
----------

### Version 0.2 (11 February 2015)

- Add Doctrine brdige

### Version 0.1.2 (3 February 2015)

- Moved development packages to `require-dev` in `composer.json`
Expand Down

0 comments on commit 414758a

Please sign in to comment.