ⓐ
Size: a a a
VM
ⓐ
VM
VM
VM
SP
SP
SP
DT
protected function setUp(): void
{
self::bootKernel();
$this->commissionService = static::$kernel->getContainer()
->get(CommissionService::class);
}ⓐ
protected function setUp(): void
{
self::bootKernel();
$this->commissionService = static::$kernel->getContainer()
->get(CommissionService::class);
}ПГ
$qb->join(Receivers::class, "r");EagerLoad работает
$qb->addSelect('r');
$qb->join('o.receivers', "r");
$qb->addSelect('r');
В чем принципальная разница в теории использования таких способов? В остальном запросы пашут и ок.ПГ
protected function setUp(): void
{
self::bootKernel();
$this->commissionService = static::$kernel->getContainer()
->get(CommissionService::class);
}use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class BaseWebTestCase extends WebTestCase
{
protected function getTestContainer(KernelBrowser $client = null): ContainerInterface
{
$container = $client->getContainer();
return $container->get('test.service_container');
}
}
DT