Exceptions
Exceptions 2
Doctrine\ORM\Query\ QueryException
*
* @return QueryException
*/
public static function syntaxError($message, $previous = null)
{
return new self('[Syntax Error] ' . $message, 0, $previous);
}
/**
* @param string $message
* @param Exception|null $previous
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
::
syntaxError
(line 457)
$message = sprintf('line 0, col %d: Error: ', $tokenPos);
$message .= $expected !== '' ? sprintf('Expected %s, got ', $expected) : 'Unexpected ';
$message .= $this->lexer->lookahead === null ? 'end of string.' : sprintf("'%s'", $token['value']);
throw QueryException::syntaxError($message, QueryException::dqlError($this->query->getDQL() ?? ''));
}
/**
* Generates a new semantical error.
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
syntaxError
(line 311)
return;
}
// If parameter is not identifier (1-99) must be exact match
if ($token < Lexer::T_IDENTIFIER) {
$this->syntaxError($this->lexer->getLiteral($token));
}
// If parameter is keyword (200+) must be exact match
if ($token > Lexer::T_IDENTIFIER) {
$this->syntaxError($this->lexer->getLiteral($token));
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php
->
match
(line 41)
$parser->match(Lexer::T_IDENTIFIER);
$parser->match(Lexer::T_OPEN_PARENTHESIS);
$this->stringPrimary = $parser->StringPrimary();
$parser->match(Lexer::T_CLOSE_PARENTHESIS);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
parse
(line 3642)
assert($this->lexer->lookahead !== null);
$funcNameLower = strtolower($this->lexer->lookahead['value']);
$funcClass = self::$stringFunctions[$funcNameLower];
$function = new $funcClass($funcNameLower);
$function->parse($this);
return $function;
}
/** @return Functions\FunctionNode */
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
FunctionsReturningStrings
(line 3498)
switch (true) {
case $customFunctionDeclaration !== null:
return $customFunctionDeclaration;
case isset(self::$stringFunctions[$funcName]):
return $this->FunctionsReturningStrings();
case isset(self::$numericFunctions[$funcName]):
return $this->FunctionsReturningNumerics();
case isset(self::$datetimeFunctions[$funcName]):
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
FunctionDeclaration
(line 3016)
return $this->StateFieldPathExpression();
}
if ($peek['value'] === '(') {
// do NOT directly go to FunctionsReturningString() because it doesn't check for custom functions.
return $this->FunctionDeclaration();
}
$this->syntaxError("'.' or '('");
break;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
StringPrimary
(line 3313)
if ($this->lexer->isNextToken(Lexer::T_INPUT_PARAMETER)) {
$this->match(Lexer::T_INPUT_PARAMETER);
assert($this->lexer->token !== null);
$stringPattern = new AST\InputParameter($this->lexer->token['value']);
} else {
$stringPattern = $this->StringPrimary();
}
$escapeChar = null;
if ($this->lexer->lookahead !== null && $this->lexer->lookahead['type'] === Lexer::T_ESCAPE) {
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
LikeExpression
(line 2652)
if ($token['type'] === Lexer::T_BETWEEN) {
return $this->BetweenExpression();
}
if ($token['type'] === Lexer::T_LIKE) {
return $this->LikeExpression();
}
if ($token['type'] === Lexer::T_IN) {
return $this->InExpression();
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
SimpleConditionalExpression
(line 2534)
public function ConditionalPrimary()
{
$condPrimary = new AST\ConditionalPrimary();
if (! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
$condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression();
return $condPrimary;
}
// Peek beyond the matching closing parenthesis ')'
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalPrimary
(line 2513)
$this->match(Lexer::T_NOT);
$not = true;
}
$conditionalPrimary = $this->ConditionalPrimary();
// Phase 1 AST optimization: Prevent AST\ConditionalFactor
// if only one AST\ConditionalPrimary is defined
if (! $not) {
return $conditionalPrimary;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalFactor
(line 2486)
$conditionalFactors[] = $this->ConditionalFactor();
while ($this->lexer->isNextToken(Lexer::T_AND)) {
$this->match(Lexer::T_AND);
$conditionalFactors[] = $this->ConditionalFactor();
}
// Phase 1 AST optimization: Prevent AST\ConditionalTerm
// if only one AST\ConditionalFactor is defined
if (count($conditionalFactors) === 1) {
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalTerm
(line 2456)
* @return AST\ConditionalExpression|AST\ConditionalFactor|AST\ConditionalPrimary|AST\ConditionalTerm
*/
public function ConditionalExpression()
{
$conditionalTerms = [];
$conditionalTerms[] = $this->ConditionalTerm();
while ($this->lexer->isNextToken(Lexer::T_OR)) {
$this->match(Lexer::T_OR);
$conditionalTerms[] = $this->ConditionalTerm();
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalExpression
(line 1391)
*/
public function WhereClause()
{
$this->match(Lexer::T_WHERE);
return new AST\WhereClause($this->ConditionalExpression());
}
/**
* HavingClause ::= "HAVING" ConditionalExpression
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
WhereClause
(line 882)
*/
public function SelectStatement()
{
$selectStatement = new AST\SelectStatement($this->SelectClause(), $this->FromClause());
$selectStatement->whereClause = $this->lexer->isNextToken(Lexer::T_WHERE) ? $this->WhereClause() : null;
$selectStatement->groupByClause = $this->lexer->isNextToken(Lexer::T_GROUP) ? $this->GroupByClause() : null;
$selectStatement->havingClause = $this->lexer->isNextToken(Lexer::T_HAVING) ? $this->HavingClause() : null;
$selectStatement->orderByClause = $this->lexer->isNextToken(Lexer::T_ORDER) ? $this->OrderByClause() : null;
return $selectStatement;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
SelectStatement
(line 849)
$this->lexer->moveNext();
switch ($this->lexer->lookahead['type'] ?? null) {
case Lexer::T_SELECT:
$statement = $this->SelectStatement();
break;
case Lexer::T_UPDATE:
$statement = $this->UpdateStatement();
break;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
QueryLanguage
(line 256)
* @return AST\SelectStatement|AST\UpdateStatement|AST\DeleteStatement
*/
public function getAST()
{
// Parse & build AST
$AST = $this->QueryLanguage();
// Process any deferred validations of some nodes in the AST.
// This also allows post-processing of the AST for modification purposes.
$this->processDeferredIdentificationVariables();
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
getAST
(line 356)
*
* @return ParserResult
*/
public function parse()
{
$AST = $this->getAST();
$customWalkers = $this->query->getHint(Query::HINT_CUSTOM_TREE_WALKERS);
if ($customWalkers !== false) {
$this->customTreeWalkers = $customWalkers;
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php
->
parse
(line 256)
}
private function unbindUnusedQueryParams(Query $query): void
{
$parser = new Parser($query);
$parameterMappings = $parser->parse()->getParameterMappings();
/** @var Collection|Parameter[] $parameters */
$parameters = $query->getParameters();
foreach ($parameters as $key => $parameter) {
$parameterName = $parameter->getName();
in
vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php
->
unbindUnusedQueryParams
(line 245)
$countQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, CountOutputWalker::class);
$countQuery->setResultSetMapping($rsm);
} else {
$this->appendTreeWalker($countQuery, CountWalker::class);
$this->unbindUnusedQueryParams($countQuery);
}
$countQuery->setFirstResult(0)->setMaxResults(null);
return $countQuery;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php
->
getCountQuery
(line 118)
#[ReturnTypeWillChange]
public function count()
{
if ($this->count === null) {
try {
$this->count = (int) array_sum(array_map('current', $this->getCountQuery()->getScalarResult()));
} catch (NoResultException $e) {
$this->count = 0;
}
}
Paginator->count()
in
vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php
count
(line 46)
$paginator = new Paginator($event->target, $fetchJoinCollection);
$paginator->setUseOutputWalkers($useOutputWalkers);
if (($count = $event->target->getHint(self::HINT_COUNT)) !== false) {
$event->count = (int) $count;
} else {
$event->count = count($paginator);
}
$event->items = iterator_to_array($paginator);
}
public static function getSubscribedEvents(): array
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
items
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php
->
dispatch
(line 93)
$this->eventDispatcher->dispatch($beforeEvent, 'knp_pager.before');
// items
$itemsEvent = new Event\ItemsEvent($offset, $limit);
$itemsEvent->options = &$options;
$itemsEvent->target = &$target;
$this->eventDispatcher->dispatch($itemsEvent, 'knp_pager.items');
if (!$itemsEvent->isPropagationStopped()) {
throw new \RuntimeException('One of listeners must count and slice given target');
}
if ($page > ceil($itemsEvent->count / $limit)) {
$pageOutOfRangeOption = $options[PaginatorInterface::PAGE_OUT_OF_RANGE] ?? $this->defaultOptions[PaginatorInterface::PAGE_OUT_OF_RANGE];
in
var/cache/dev/ContainerF3J4NcO/PaginatorInterface_82dac15.php
->
paginate
(line 30)
public function paginate($target, int $page = 1, ?int $limit = null, array $options = []) : \Knp\Component\Pager\Pagination\PaginationInterface
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'paginate', array('target' => $target, 'page' => $page, 'limit' => $limit, 'options' => $options), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
if ($this->valueHolderd14db === $returnValue = $this->valueHolderd14db->paginate($target, $page, $limit, $options)) {
return $this;
}
return $returnValue;
}
$queryBuilder = $queryBuilder->andWhere("this.sektor = " . $request->get('sektor'));
}
$queryBuilder = $queryBuilder->addOrderBy('this.id', 'desc');
// dump($queryBuilder->getQuery()->getResult());exit;
$pagination = $paginatorInterface->paginate($queryBuilder, $request->query->getInt('page', 1), 10);
$kategori = array();
$icons = array();
foreach ($pagination as $pub) {
$kategori_detail = $mUrusanDetailRepository->findBy(['reff_id' => $pub->getId(), 'reff_name' => 'PUBLIKASI'], ['id' => 'ASC']);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 163)
$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);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$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) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$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);
Doctrine\ORM\Query\ QueryException
*
* @return QueryException
*/
public static function dqlError($dql)
{
return new self($dql);
}
/**
* @param string $message
* @param Exception|null $previous
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
::
dqlError
(line 457)
$message = sprintf('line 0, col %d: Error: ', $tokenPos);
$message .= $expected !== '' ? sprintf('Expected %s, got ', $expected) : 'Unexpected ';
$message .= $this->lexer->lookahead === null ? 'end of string.' : sprintf("'%s'", $token['value']);
throw QueryException::syntaxError($message, QueryException::dqlError($this->query->getDQL() ?? ''));
}
/**
* Generates a new semantical error.
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
syntaxError
(line 311)
return;
}
// If parameter is not identifier (1-99) must be exact match
if ($token < Lexer::T_IDENTIFIER) {
$this->syntaxError($this->lexer->getLiteral($token));
}
// If parameter is keyword (200+) must be exact match
if ($token > Lexer::T_IDENTIFIER) {
$this->syntaxError($this->lexer->getLiteral($token));
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php
->
match
(line 41)
$parser->match(Lexer::T_IDENTIFIER);
$parser->match(Lexer::T_OPEN_PARENTHESIS);
$this->stringPrimary = $parser->StringPrimary();
$parser->match(Lexer::T_CLOSE_PARENTHESIS);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
parse
(line 3642)
assert($this->lexer->lookahead !== null);
$funcNameLower = strtolower($this->lexer->lookahead['value']);
$funcClass = self::$stringFunctions[$funcNameLower];
$function = new $funcClass($funcNameLower);
$function->parse($this);
return $function;
}
/** @return Functions\FunctionNode */
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
FunctionsReturningStrings
(line 3498)
switch (true) {
case $customFunctionDeclaration !== null:
return $customFunctionDeclaration;
case isset(self::$stringFunctions[$funcName]):
return $this->FunctionsReturningStrings();
case isset(self::$numericFunctions[$funcName]):
return $this->FunctionsReturningNumerics();
case isset(self::$datetimeFunctions[$funcName]):
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
FunctionDeclaration
(line 3016)
return $this->StateFieldPathExpression();
}
if ($peek['value'] === '(') {
// do NOT directly go to FunctionsReturningString() because it doesn't check for custom functions.
return $this->FunctionDeclaration();
}
$this->syntaxError("'.' or '('");
break;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
StringPrimary
(line 3313)
if ($this->lexer->isNextToken(Lexer::T_INPUT_PARAMETER)) {
$this->match(Lexer::T_INPUT_PARAMETER);
assert($this->lexer->token !== null);
$stringPattern = new AST\InputParameter($this->lexer->token['value']);
} else {
$stringPattern = $this->StringPrimary();
}
$escapeChar = null;
if ($this->lexer->lookahead !== null && $this->lexer->lookahead['type'] === Lexer::T_ESCAPE) {
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
LikeExpression
(line 2652)
if ($token['type'] === Lexer::T_BETWEEN) {
return $this->BetweenExpression();
}
if ($token['type'] === Lexer::T_LIKE) {
return $this->LikeExpression();
}
if ($token['type'] === Lexer::T_IN) {
return $this->InExpression();
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
SimpleConditionalExpression
(line 2534)
public function ConditionalPrimary()
{
$condPrimary = new AST\ConditionalPrimary();
if (! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
$condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression();
return $condPrimary;
}
// Peek beyond the matching closing parenthesis ')'
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalPrimary
(line 2513)
$this->match(Lexer::T_NOT);
$not = true;
}
$conditionalPrimary = $this->ConditionalPrimary();
// Phase 1 AST optimization: Prevent AST\ConditionalFactor
// if only one AST\ConditionalPrimary is defined
if (! $not) {
return $conditionalPrimary;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalFactor
(line 2486)
$conditionalFactors[] = $this->ConditionalFactor();
while ($this->lexer->isNextToken(Lexer::T_AND)) {
$this->match(Lexer::T_AND);
$conditionalFactors[] = $this->ConditionalFactor();
}
// Phase 1 AST optimization: Prevent AST\ConditionalTerm
// if only one AST\ConditionalFactor is defined
if (count($conditionalFactors) === 1) {
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalTerm
(line 2456)
* @return AST\ConditionalExpression|AST\ConditionalFactor|AST\ConditionalPrimary|AST\ConditionalTerm
*/
public function ConditionalExpression()
{
$conditionalTerms = [];
$conditionalTerms[] = $this->ConditionalTerm();
while ($this->lexer->isNextToken(Lexer::T_OR)) {
$this->match(Lexer::T_OR);
$conditionalTerms[] = $this->ConditionalTerm();
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
ConditionalExpression
(line 1391)
*/
public function WhereClause()
{
$this->match(Lexer::T_WHERE);
return new AST\WhereClause($this->ConditionalExpression());
}
/**
* HavingClause ::= "HAVING" ConditionalExpression
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
WhereClause
(line 882)
*/
public function SelectStatement()
{
$selectStatement = new AST\SelectStatement($this->SelectClause(), $this->FromClause());
$selectStatement->whereClause = $this->lexer->isNextToken(Lexer::T_WHERE) ? $this->WhereClause() : null;
$selectStatement->groupByClause = $this->lexer->isNextToken(Lexer::T_GROUP) ? $this->GroupByClause() : null;
$selectStatement->havingClause = $this->lexer->isNextToken(Lexer::T_HAVING) ? $this->HavingClause() : null;
$selectStatement->orderByClause = $this->lexer->isNextToken(Lexer::T_ORDER) ? $this->OrderByClause() : null;
return $selectStatement;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
SelectStatement
(line 849)
$this->lexer->moveNext();
switch ($this->lexer->lookahead['type'] ?? null) {
case Lexer::T_SELECT:
$statement = $this->SelectStatement();
break;
case Lexer::T_UPDATE:
$statement = $this->UpdateStatement();
break;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
QueryLanguage
(line 256)
* @return AST\SelectStatement|AST\UpdateStatement|AST\DeleteStatement
*/
public function getAST()
{
// Parse & build AST
$AST = $this->QueryLanguage();
// Process any deferred validations of some nodes in the AST.
// This also allows post-processing of the AST for modification purposes.
$this->processDeferredIdentificationVariables();
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php
->
getAST
(line 356)
*
* @return ParserResult
*/
public function parse()
{
$AST = $this->getAST();
$customWalkers = $this->query->getHint(Query::HINT_CUSTOM_TREE_WALKERS);
if ($customWalkers !== false) {
$this->customTreeWalkers = $customWalkers;
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php
->
parse
(line 256)
}
private function unbindUnusedQueryParams(Query $query): void
{
$parser = new Parser($query);
$parameterMappings = $parser->parse()->getParameterMappings();
/** @var Collection|Parameter[] $parameters */
$parameters = $query->getParameters();
foreach ($parameters as $key => $parameter) {
$parameterName = $parameter->getName();
in
vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php
->
unbindUnusedQueryParams
(line 245)
$countQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, CountOutputWalker::class);
$countQuery->setResultSetMapping($rsm);
} else {
$this->appendTreeWalker($countQuery, CountWalker::class);
$this->unbindUnusedQueryParams($countQuery);
}
$countQuery->setFirstResult(0)->setMaxResults(null);
return $countQuery;
in
vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php
->
getCountQuery
(line 118)
#[ReturnTypeWillChange]
public function count()
{
if ($this->count === null) {
try {
$this->count = (int) array_sum(array_map('current', $this->getCountQuery()->getScalarResult()));
} catch (NoResultException $e) {
$this->count = 0;
}
}
Paginator->count()
in
vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php
count
(line 46)
$paginator = new Paginator($event->target, $fetchJoinCollection);
$paginator->setUseOutputWalkers($useOutputWalkers);
if (($count = $event->target->getHint(self::HINT_COUNT)) !== false) {
$event->count = (int) $count;
} else {
$event->count = count($paginator);
}
$event->items = iterator_to_array($paginator);
}
public static function getSubscribedEvents(): array
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
items
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php
->
dispatch
(line 93)
$this->eventDispatcher->dispatch($beforeEvent, 'knp_pager.before');
// items
$itemsEvent = new Event\ItemsEvent($offset, $limit);
$itemsEvent->options = &$options;
$itemsEvent->target = &$target;
$this->eventDispatcher->dispatch($itemsEvent, 'knp_pager.items');
if (!$itemsEvent->isPropagationStopped()) {
throw new \RuntimeException('One of listeners must count and slice given target');
}
if ($page > ceil($itemsEvent->count / $limit)) {
$pageOutOfRangeOption = $options[PaginatorInterface::PAGE_OUT_OF_RANGE] ?? $this->defaultOptions[PaginatorInterface::PAGE_OUT_OF_RANGE];
in
var/cache/dev/ContainerF3J4NcO/PaginatorInterface_82dac15.php
->
paginate
(line 30)
public function paginate($target, int $page = 1, ?int $limit = null, array $options = []) : \Knp\Component\Pager\Pagination\PaginationInterface
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'paginate', array('target' => $target, 'page' => $page, 'limit' => $limit, 'options' => $options), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
if ($this->valueHolderd14db === $returnValue = $this->valueHolderd14db->paginate($target, $page, $limit, $options)) {
return $this;
}
return $returnValue;
}
$queryBuilder = $queryBuilder->andWhere("this.sektor = " . $request->get('sektor'));
}
$queryBuilder = $queryBuilder->addOrderBy('this.id', 'desc');
// dump($queryBuilder->getQuery()->getResult());exit;
$pagination = $paginatorInterface->paginate($queryBuilder, $request->query->getInt('page', 1), 10);
$kategori = array();
$icons = array();
foreach ($pagination as $pub) {
$kategori_detail = $mUrusanDetailRepository->findBy(['reff_id' => $pub->getId(), 'reff_name' => 'PUBLIKASI'], ['id' => 'ASC']);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 163)
$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);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$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) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$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);
Stack Traces 2
[2/2]
QueryException
|
---|
Doctrine\ORM\Query\QueryException: [Syntax Error] line 0, col 102: Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got '+' at vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:32 at Doctrine\ORM\Query\QueryException::syntaxError() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:457) at Doctrine\ORM\Query\Parser->syntaxError() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:311) at Doctrine\ORM\Query\Parser->match() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php:41) at Doctrine\ORM\Query\AST\Functions\LowerFunction->parse() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3642) at Doctrine\ORM\Query\Parser->FunctionsReturningStrings() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3498) at Doctrine\ORM\Query\Parser->FunctionDeclaration() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3016) at Doctrine\ORM\Query\Parser->StringPrimary() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3313) at Doctrine\ORM\Query\Parser->LikeExpression() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2652) at Doctrine\ORM\Query\Parser->SimpleConditionalExpression() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2534) at Doctrine\ORM\Query\Parser->ConditionalPrimary() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2513) at Doctrine\ORM\Query\Parser->ConditionalFactor() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2486) at Doctrine\ORM\Query\Parser->ConditionalTerm() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2456) at Doctrine\ORM\Query\Parser->ConditionalExpression() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:1391) at Doctrine\ORM\Query\Parser->WhereClause() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:882) at Doctrine\ORM\Query\Parser->SelectStatement() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:849) at Doctrine\ORM\Query\Parser->QueryLanguage() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:256) at Doctrine\ORM\Query\Parser->getAST() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:356) at Doctrine\ORM\Query\Parser->parse() (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:256) at Doctrine\ORM\Tools\Pagination\Paginator->unbindUnusedQueryParams() (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:245) at Doctrine\ORM\Tools\Pagination\Paginator->getCountQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:118) at Doctrine\ORM\Tools\Pagination\Paginator->count() at count() (vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php:46) at Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber->items() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php:93) at Knp\Component\Pager\Paginator->paginate() (var/cache/dev/ContainerF3J4NcO/PaginatorInterface_82dac15.php:30) at ContainerF3J4NcO\PaginatorInterface_82dac15->paginate() (src/Controller/Frontend/DatasetController.php:79) at App\Controller\Frontend\DatasetController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |
[1/2]
QueryException
|
---|
Doctrine\ORM\Query\QueryException: SELECT this FROM App\Entity\TPublikasi this WHERE this.status = 3 AND lower(this.judul) LIKE lower('%'+sleep(20.to_i)+'%') ORDER BY this.id desc at vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:21 at Doctrine\ORM\Query\QueryException::dqlError() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:457) at Doctrine\ORM\Query\Parser->syntaxError() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:311) at Doctrine\ORM\Query\Parser->match() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php:41) at Doctrine\ORM\Query\AST\Functions\LowerFunction->parse() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3642) at Doctrine\ORM\Query\Parser->FunctionsReturningStrings() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3498) at Doctrine\ORM\Query\Parser->FunctionDeclaration() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3016) at Doctrine\ORM\Query\Parser->StringPrimary() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3313) at Doctrine\ORM\Query\Parser->LikeExpression() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2652) at Doctrine\ORM\Query\Parser->SimpleConditionalExpression() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2534) at Doctrine\ORM\Query\Parser->ConditionalPrimary() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2513) at Doctrine\ORM\Query\Parser->ConditionalFactor() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2486) at Doctrine\ORM\Query\Parser->ConditionalTerm() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2456) at Doctrine\ORM\Query\Parser->ConditionalExpression() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:1391) at Doctrine\ORM\Query\Parser->WhereClause() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:882) at Doctrine\ORM\Query\Parser->SelectStatement() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:849) at Doctrine\ORM\Query\Parser->QueryLanguage() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:256) at Doctrine\ORM\Query\Parser->getAST() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:356) at Doctrine\ORM\Query\Parser->parse() (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:256) at Doctrine\ORM\Tools\Pagination\Paginator->unbindUnusedQueryParams() (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:245) at Doctrine\ORM\Tools\Pagination\Paginator->getCountQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:118) at Doctrine\ORM\Tools\Pagination\Paginator->count() at count() (vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php:46) at Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber->items() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php:93) at Knp\Component\Pager\Paginator->paginate() (var/cache/dev/ContainerF3J4NcO/PaginatorInterface_82dac15.php:30) at ContainerF3J4NcO\PaginatorInterface_82dac15->paginate() (src/Controller/Frontend/DatasetController.php:79) at App\Controller\Frontend\DatasetController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |