Improve unit tests.
Change array to Doctrine ArrayCollection.
Fix all model by unit tests.