Implemented SourceRepository

This commit is contained in:
Kevin Frantz
2019-01-04 20:10:08 +01:00
parent ae737b6923
commit a074932fb5
7 changed files with 33 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ class DefaultController extends AbstractEntityController
$user = new User();
$user->setSource($this->getDoctrine()
->getRepository(AbstractSource::class)
->findOneBy(['slug' => SystemSlugType::GUEST_USER]));
->findOneBySlug(SystemSlugType::GUEST_USER));
}
$requestedSource = new class() extends AbstractSource {
};