where bn.homonym = 0 and bn.common_name = 0
group by b.id, bn.id
having max(td.date) < :date
order by bn.name
SQL;
$rsm = new (ResultSetMapping())->addScalarResult("id", "type");
$query = $this->_em->createNativeQuery($sql, $rsm)->setParameter('date', $date->modify('first day of this month'))->setFirstResult($firstResult)->setMaxResults($pageSize)->getQuery();
$paginator = new Paginator($query, true);
return $paginator;
}
}
$autoloadedClass = self::$autoloadedClass;
self::$autoloadedClass = ltrim($this->resource, '\\');
try {
$exists[0] = class_exists($this->resource) || interface_exists($this->resource, false) || trait_exists($this->resource, false);
} catch (\Exception $e) {
$exists[1] = $e->getMessage();
try {
self::throwOnRequiredClass($this->resource, $e);
try {
if (isset($this->classReflectors[$class])) {
$classReflector = $this->classReflectors[$class];
} elseif (class_exists(ClassExistenceResource::class)) {
$resource = new ClassExistenceResource($class, false);
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
} else {
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
}
} catch (\ReflectionException $e) {
if ($throw) {
if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+$/', $class)) {
continue;
}
try {
$r = $this->container->getReflectionClass($class);
} catch (\ReflectionException $e) {
$classes[$class] = $e->getMessage();
continue;
}
// check to make sure the expected class exists
}
if (!preg_match('/^(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+\\\\)++$/', $namespace)) {
throw new InvalidArgumentException(sprintf('Namespace is not a valid PSR-4 prefix: "%s".', $namespace));
}
$classes = $this->findClasses($namespace, $resource, (array) $exclude);
// prepare for deep cloning
$serializedPrototype = serialize($prototype);
foreach ($classes as $class => $errorMessage) {
if (interface_exists($class, false)) {
if (!\is_string($service['resource'])) {
throw new InvalidArgumentException(sprintf('A "resource" attribute must be of type string for service "%s" in "%s". Check your YAML syntax.', $id, $file));
}
$exclude = $service['exclude'] ?? null;
$namespace = $service['namespace'] ?? $id;
$this->registerClasses($definition, $namespace, $service['resource'], $exclude);
} else {
$this->setDefinition($id, $definition);
}
}
} elseif (!\is_bool($ignoreErrors)) {
throw new \TypeError(sprintf('Invalid argument $ignoreErrors provided to "%s::import()": boolean or "not_found" expected, "%s" given.', static::class, get_debug_type($ignoreErrors)));
}
try {
parent::import(...$args);
} catch (LoaderLoadException $e) {
if (!$ignoreNotFound || !($prev = $e->getPrevious()) instanceof FileLocatorFileNotFoundException) {
throw $e;
}
}
final public function import(string $resource, string $type = null, $ignoreErrors = false)
{
$this->loader->setCurrentDir(\dirname($this->path));
$this->loader->import($resource, $type, $ignoreErrors, $this->file);
}
final public function parameters(): ParametersConfigurator
{
return new ParametersConfigurator($this->container);
{
$container->import('../config/{packages}/*.yaml');
$container->import('../config/{packages}/'.$this->environment.'/*.yaml');
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
$container->import('../config/services.yaml');
$container->import('../config/{services}_'.$this->environment.'.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) {
(require $path)($container->withPath($path), $this);
}
}
AbstractConfigurator::$valuePreProcessor = function ($value) {
return $this === $value ? new Reference('kernel') : $value;
};
try {
$this->configureContainer(new ContainerConfigurator($container, $kernelLoader, $instanceof, $file, $file), $loader);
} finally {
$instanceof = [];
$kernelLoader->registerAliasesForSinglyImplementedInterfaces();
AbstractConfigurator::$valuePreProcessor = $valuePreProcessor;
}
$container = $this->getContainerBuilder();
$container->addObjectResource($this);
$this->prepareContainer($container);
if (null !== $cont = $this->registerContainerConfiguration($this->getContainerLoader($container))) {
$container->merge($cont);
}
$container->addCompilerPass(new AddAnnotatedClassesToCachePass($this));
$_ENV['SHELL_VERBOSITY'] = 3;
$_SERVER['SHELL_VERBOSITY'] = 3;
}
$this->initializeBundles();
$this->initializeContainer();
$container = $this->container;
if ($container->hasParameter('kernel.trusted_hosts') && $trustedHosts = $container->getParameter('kernel.trusted_hosts')) {
Request::setTrustedHosts($trustedHosts);
* {@inheritdoc}
*/
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
{
if (!$this->booted) {
$container = $this->container ?? $this->preBoot();
if ($container->has('http_cache')) {
return $container->get('http_cache')->handle($request, $type, $catch);
}
}
ParseError |
---|
ParseError: syntax error, unexpected '(' at /var/www/prod2021/src/Repository/BrandNameRepository.php:185 at Composer\Autoload\includeFile() (/var/www/prod2021/vendor/composer/ClassLoader.php:346) at Composer\Autoload\ClassLoader->loadClass() (/var/www/prod2021/vendor/symfony/error-handler/DebugClassLoader.php:353) at Symfony\Component\ErrorHandler\DebugClassLoader->loadClass() at spl_autoload_call() at class_exists() (/var/www/prod2021/vendor/symfony/config/Resource/ClassExistenceResource.php:84) at Symfony\Component\Config\Resource\ClassExistenceResource->isFresh() (/var/www/prod2021/vendor/symfony/dependency-injection/ContainerBuilder.php:348) at Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/FileLoader.php:199) at Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/FileLoader.php:99) at Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:672) at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:235) at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:155) at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load() (/var/www/prod2021/vendor/symfony/config/Loader/FileLoader.php:158) at Symfony\Component\Config\Loader\FileLoader->doImport() (/var/www/prod2021/vendor/symfony/config/Loader/FileLoader.php:97) at Symfony\Component\Config\Loader\FileLoader->import() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/FileLoader.php:64) at Symfony\Component\DependencyInjection\Loader\FileLoader->import() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php:61) at Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import() (/var/www/prod2021/src/Kernel.php:20) at App\Kernel->configureContainer() (/var/www/prod2021/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:155) at App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}() (/var/www/prod2021/vendor/symfony/dependency-injection/Loader/ClosureLoader.php:38) at Symfony\Component\DependencyInjection\Loader\ClosureLoader->load() (/var/www/prod2021/vendor/symfony/config/Loader/DelegatingLoader.php:40) at Symfony\Component\Config\Loader\DelegatingLoader->load() (/var/www/prod2021/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:163) at App\Kernel->registerContainerConfiguration() (/var/www/prod2021/vendor/symfony/http-kernel/Kernel.php:644) at Symfony\Component\HttpKernel\Kernel->buildContainer() (/var/www/prod2021/vendor/symfony/http-kernel/Kernel.php:540) at Symfony\Component\HttpKernel\Kernel->initializeContainer() (/var/www/prod2021/vendor/symfony/http-kernel/Kernel.php:780) at Symfony\Component\HttpKernel\Kernel->preBoot() (/var/www/prod2021/vendor/symfony/http-kernel/Kernel.php:183) at Symfony\Component\HttpKernel\Kernel->handle() (/var/www/prod2021/public/index.php:20) |