Jak uzyskać EntityManager w Testach:
Próbowałem tak:
public function setUp() { self::bootKernel(); $this->em = self::$kernel->getContainer()->get('doctrine')->getManager(); }
https://symfony.com/doc/2.8/testing/doctrine.html
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)