*/
public function getProxy($className, array $identifier)
{
$definition = isset($this->definitions[$className])
? $this->definitions[$className]
: $this->getProxyDefinition($className);
$fqcn = $definition->proxyClassName;
$proxy = new $fqcn($definition->initializer, $definition->cloner);
foreach ($definition->identifierFields as $idField) {
if ( ! isset($identifier[$idField])) {
default:
switch (true) {
// We are negating the condition here. Other cases will assume it is valid!
case ($hints['fetchMode'][$class->name][$field] !== ClassMetadata::FETCH_EAGER):
$newValue = $this->em->getProxyFactory()->getProxy($assoc['targetEntity'], $associatedId);
break;
// Deferred eager load only works for single identifier classes
case (isset($hints[self::HINT_DEFEREAGERLOAD]) && ! $targetClass->isIdentifierComposite):
// TODO: Is there a faster approach?
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
$hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);
$entities = $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, $hints);
return $entities ? $entities[0] : null;
}
/**
PlaceRegionsRepository $placeRegionsRepository,
CategoryRepository $categoryRepository, $photoLoad = null)
{
$curentSite = $this->getDoctrine()
->getRepository(Sites::class)
->find($this->params->get('curent_site'));
if($category=='blogosfera') {
return $this->redirect( 'https://vse.media/korupcia/'.$alies.'.html');
}
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
ErrorException |
---|
ErrorException: Notice: file_put_contents(): write of 3196 bytes failed with errno=28 No space left on device at vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php:296 at Doctrine\Common\Proxy\ProxyGenerator->generateProxyClass() (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:215) at Doctrine\Common\Proxy\AbstractProxyFactory->getProxyDefinition() (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:114) at Doctrine\Common\Proxy\AbstractProxyFactory->getProxy() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2807) at Doctrine\ORM\UnitOfWork->createEntity() (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:271) at Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity() (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:492) at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData() (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:162) at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateAllData() (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:153) at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:734) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:744) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:472) at Doctrine\ORM\EntityManager->find() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:151) at Doctrine\ORM\EntityRepository->find() (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2259) at App\Controller\DefaultController->post() (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:40) |