W3cubDocs

/Symfony 4.1

TestRepositoryFactory

class TestRepositoryFactory implements RepositoryFactory

Methods

getRepository(EntityManagerInterface $entityManager, $entityName)

{@inheritdoc}

setRepository(EntityManagerInterface $entityManager, $entityName, ObjectRepository $repository)

Details

getRepository(EntityManagerInterface $entityManager, $entityName)

{@inheritdoc}

Parameters

EntityManagerInterface $entityManager
$entityName

setRepository(EntityManagerInterface $entityManager, $entityName, ObjectRepository $repository)

Parameters

EntityManagerInterface $entityManager
$entityName
ObjectRepository $repository

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Test/TestRepositoryFactory.html