$this->initialize();
$scope = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['class'] ?? null;
return (function () use ($name) {
return $this->$name;
})->bindTo($this, $scope)();
}
public function __isset(string $name): bool
{
$scope = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['class'] ?? null;
return (function () use ($name) {
return $this->$name;
})->bindTo($this, $scope)();
}
public function __isset(string $name): bool
{
$this->initialize();
public function setZoneRecherche($zone)
{
if (!$zone) {
unset($this->zone_recherche['zip']);
} else {
$this->zone_recherche['zip'] = $zone;
}
}
// }}}
$params_sql['special']['text']['language'] = array('NOT IN' => array('fr'));
}
if(!empty($params_sql['special']['area'])) {
$this->context['view']->area_active = true;
$this->spectacles->setZoneRecherche($this->getZoneRecherche($params_sql['special']['area'])); // définir la zone de recherche
}
$this->context['view']->nb_textes_total = $this->spectacles->countListSpectacles($params_sql);
$params_sql['params']['limit'] = array($this->getLimitStart(),$this->perPage);
$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);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
ErrorException
|
---|
ErrorException: Notice: Undefined property: TheatreCore\Repository\SpectaclesRepository::$zone_recherche at /home/web/theatre-contemporain.net/dev/vendor/doctrine/doctrine-bundle/Repository/LazyServiceEntityRepository.php:54 at TheatreCore\Repository\SpectaclesRepository->Doctrine\Bundle\DoctrineBundle\Repository\{closure}() (/home/web/theatre-contemporain.net/dev/vendor/doctrine/doctrine-bundle/Repository/LazyServiceEntityRepository.php:55) at Doctrine\Bundle\DoctrineBundle\Repository\LazyServiceEntityRepository->__get() (/home/web/theatre-contemporain.net/dev/vendor/theatre/core/src/Repository/SpectaclesRepository.php:2554) at TheatreCore\Repository\SpectaclesRepository->setZoneRecherche() (/home/web/theatre-contemporain.net/dev/src/Controller/TextesController.php:210) at App\Controller\TextesController->action_affiche() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (/home/web/theatre-contemporain.net/dev/public/index.php:20) |