restx/restx — pull request #111 by ggtools (2014-06-11 22:09:30+00:00)
Title: Issue/object

Reorganized pull request:

- First commit implements a unit test to show that you cannot save the `UserCredentials` after calling `setUserRef` with the id of user object.
- Second commit add the `@ObjectId` to `UserCredentials` which fixes the issue.

May not be the best way to implement the unit test as we only need to launch mongodb and try to insert the UserCredentials.