greenlaw110/play-morphia — pull request #78 by jasalguero (2012-05-27 22:01:02+00:00)
Title: Added test for referenced models through YML files

Hi,

I forked the project to add the unit test for the issue with the Reference classes in the Yaml files. Strangely I had to add the dependency to the morphia module to make it work (in the dependencies there was only the one for CRUD).

I just added two new models: Parent and Child, one having a reference to the other
I also added a initial-data.yml file and a new test ReferenceYMLTest really simple, that loads the initial data and then check that the dependency is not null.

More tests could be added, for Embedded and multiple references, but I think for now this is enough to see the problem.

Hope it helps :)
Jose Salguero