*/
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?
$cont = preg_replace('#(https?)://www\.youtube\.com\/watch\?v=([-_a-z0-9]{11})#i', '<iframe width="100%" height="355" src="https://www.youtube.com/embed/${2}?autoplay=0" frameborder="0"></iframe>', $content);
//$content = HelpersPostService::formShortCode($content);
$post->setContent($cont);
$categoriesAll = $categoryRepository->findByPostOn($post->getId());
//var_dump(count($categoriesAll->toArray()));
//dump($post);
$sitesLink = [];
foreach ($categoriesAll as $category_1) {
$site_1 = $category_1->getSite();
$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() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757) at Doctrine\ORM\AbstractQuery->getResult() (/home/admin/web/t.ukraine-inform.com/public_html/src/Repository/CategoryRepository.php:80) at App\Repository\CategoryRepository->findByPostOn() (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2757) 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) |