doctrine/DoctrineModule — pull request #184 by MatyCZ (2013-03-01 13:51:06+00:00)
Title: [Hydrator] Create new instance of target entity when array without identifiers is given

* DoctrineObject now get metadata for all target classes (including associations)
* Method toMany() now create new instance of target entity when array without identifiers is given
* Method toMany() now filtering criteria for calling find() method when identifiers is given (only identifiers is necessary - any others fields can break attempt to find existing entity in DB)
* Refactoring DoctrineObject tests (can set many class metadata, new getters for hydrators)
* Add 2 tests to verify new toMany() behaviour