Improved public API in VisitLocation entity, reducing anemic model

This commit is contained in:
Alejandro Celaya
2018-10-28 15:13:45 +01:00
parent 084b1169d7
commit e046eddda9
7 changed files with 41 additions and 93 deletions

View File

@@ -39,7 +39,7 @@ class VisitRepositoryTest extends DatabaseTestCase
$visit = new Visit();
if ($i % 2 === 0) {
$location = new VisitLocation();
$location = new VisitLocation([]);
$this->getEntityManager()->persist($location);
$visit->setVisitLocation($location);
}