*/
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?
$postRepository = $this->getDoctrine()->getRepository(Post::class);
$postCat = $postRepository->getPostList($categories_1, 8, 0);
} else {
$categories = $category->getChildsMapIds();
$postRepository = $this->getDoctrine()->getRepository(Post::class);
$postCat = $postRepository->getPostList($categories, 8, 0);
}
$str = $post->getContent();
$str = str_replace('../thumb/thumb.php?src=..', '', $str);
$str = str_replace('../thumb/thumb.php?src=', '', $str);
$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 8192 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/AbstractQuery.php:1009) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954) at Doctrine\ORM\AbstractQuery->execute() (/home/admin/web/t.ukraine-inform.com/public_html/src/Repository/PostRepository.php:457) at App\Repository\PostRepository->getPostList() (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2729) 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:37) |