@@ -278,7 +278,8 @@ |
||
278 | 278 | throw new AccessDeniedException(); |
279 | 279 | } |
280 | 280 | $extensionHelper = $this->get('zikula_extensions_module.extension_helper'); |
281 | - if (!$this->get('kernel')->isBundle($extension->getName()) && !$extensionHelper->isLegacyModuleType($extension)) { // @deprecated method call |
|
281 | + if (!$this->get('kernel')->isBundle($extension->getName()) && !$extensionHelper->isLegacyModuleType($extension)) { |
|
282 | +// @deprecated method call |
|
282 | 283 | $this->get('zikula_extensions_module.extension_state_helper')->updateState($extension->getId(), Constant::STATE_TRANSITIONAL); |
283 | 284 | $this->get('zikula.cache_clearer')->clear('symfony'); |
284 | 285 |
@@ -150,9 +150,9 @@ discard block |
||
150 | 150 | |
151 | 151 | $qb = $this->getEntityManager()->createQueryBuilder(); |
152 | 152 | $qb->update($this->mainEntityClass, 'tbl') |
153 | - ->set('tbl.createdBy', $newUserId) |
|
154 | - ->where('tbl.createdBy = :creator') |
|
155 | - ->setParameter('creator', $userId); |
|
153 | + ->set('tbl.createdBy', $newUserId) |
|
154 | + ->where('tbl.createdBy = :creator') |
|
155 | + ->setParameter('creator', $userId); |
|
156 | 156 | $query = $qb->getQuery(); |
157 | 157 | $query->execute(); |
158 | 158 | |
@@ -183,9 +183,9 @@ discard block |
||
183 | 183 | |
184 | 184 | $qb = $this->getEntityManager()->createQueryBuilder(); |
185 | 185 | $qb->update($this->mainEntityClass, 'tbl') |
186 | - ->set('tbl.updatedBy', $newUserId) |
|
187 | - ->where('tbl.updatedBy = :editor') |
|
188 | - ->setParameter('editor', $userId); |
|
186 | + ->set('tbl.updatedBy', $newUserId) |
|
187 | + ->where('tbl.updatedBy = :editor') |
|
188 | + ->setParameter('editor', $userId); |
|
189 | 189 | $query = $qb->getQuery(); |
190 | 190 | $query->execute(); |
191 | 191 | |
@@ -214,8 +214,8 @@ discard block |
||
214 | 214 | |
215 | 215 | $qb = $this->getEntityManager()->createQueryBuilder(); |
216 | 216 | $qb->delete($this->mainEntityClass, 'tbl') |
217 | - ->where('tbl.createdBy = :creator') |
|
218 | - ->setParameter('creator', $userId); |
|
217 | + ->where('tbl.createdBy = :creator') |
|
218 | + ->setParameter('creator', $userId); |
|
219 | 219 | $query = $qb->getQuery(); |
220 | 220 | $query->execute(); |
221 | 221 | |
@@ -244,8 +244,8 @@ discard block |
||
244 | 244 | |
245 | 245 | $qb = $this->getEntityManager()->createQueryBuilder(); |
246 | 246 | $qb->delete($this->mainEntityClass, 'tbl') |
247 | - ->where('tbl.updatedBy = :editor') |
|
248 | - ->setParameter('editor', $userId); |
|
247 | + ->where('tbl.updatedBy = :editor') |
|
248 | + ->setParameter('editor', $userId); |
|
249 | 249 | $query = $qb->getQuery(); |
250 | 250 | $query->execute(); |
251 | 251 | |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | { |
331 | 331 | if (count($exclusions) > 0) { |
332 | 332 | $qb->andWhere('tbl.id NOT IN (:excludedIdentifiers)') |
333 | - ->setParameter('excludedIdentifiers', $exclusions); |
|
333 | + ->setParameter('excludedIdentifiers', $exclusions); |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | return $qb; |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | $offset = ($currentPage-1) * $resultsPerPage; |
391 | 391 | |
392 | 392 | $query->setFirstResult($offset) |
393 | - ->setMaxResults($resultsPerPage); |
|
393 | + ->setMaxResults($resultsPerPage); |
|
394 | 394 | |
395 | 395 | return $query; |
396 | 396 | } |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | |
488 | 488 | $qb = $this->getEntityManager()->createQueryBuilder(); |
489 | 489 | $qb->select($selection) |
490 | - ->from($this->mainEntityClass, 'tbl'); |
|
490 | + ->from($this->mainEntityClass, 'tbl'); |
|
491 | 491 | |
492 | 492 | if (!empty($where)) { |
493 | 493 | $qb->andWhere($where); |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | { |
537 | 537 | $qb = $this->getCountQuery('', false); |
538 | 538 | $qb->andWhere('tbl.' . $fieldName . ' = :' . $fieldName) |
539 | - ->setParameter($fieldName, $fieldValue); |
|
539 | + ->setParameter($fieldName, $fieldValue); |
|
540 | 540 | |
541 | 541 | if ($excludeId > 0) { |
542 | 542 | $qb = $this->addExclusion($qb, [$excludeId]); |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | |
580 | 580 | $qb = $this->getEntityManager()->createQueryBuilder(); |
581 | 581 | $qb->select($selection) |
582 | - ->from($this->mainEntityClass, 'tbl'); |
|
582 | + ->from($this->mainEntityClass, 'tbl'); |
|
583 | 583 | |
584 | 584 | if (true === $useJoins) { |
585 | 585 | $this->addJoinsToFrom($qb); |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | if ($orderBy == 'RAND()') { |
608 | 608 | // random selection |
609 | 609 | $qb->addSelect('MOD(tbl.id, ' . mt_rand(2, 15) . ') AS HIDDEN randomIdentifiers') |
610 | - ->add('orderBy', 'randomIdentifiers'); |
|
610 | + ->add('orderBy', 'randomIdentifiers'); |
|
611 | 611 | |
612 | 612 | return $qb; |
613 | 613 | } |
@@ -626,12 +626,12 @@ discard block |
||
626 | 626 | } |
627 | 627 | if (false !== strpos($orderBy, 'tbl.createdBy')) { |
628 | 628 | $qb->addSelect('tblCreator') |
629 | - ->leftJoin('tbl.createdBy', 'tblCreator'); |
|
629 | + ->leftJoin('tbl.createdBy', 'tblCreator'); |
|
630 | 630 | $orderBy = str_replace('tbl.createdBy', 'tblCreator.uname', $orderBy); |
631 | 631 | } |
632 | 632 | if (false !== strpos($orderBy, 'tbl.updatedBy')) { |
633 | 633 | $qb->addSelect('tblUpdater') |
634 | - ->leftJoin('tbl.updatedBy', 'tblUpdater'); |
|
634 | + ->leftJoin('tbl.updatedBy', 'tblUpdater'); |
|
635 | 635 | $orderBy = str_replace('tbl.updatedBy', 'tblUpdater.uname', $orderBy); |
636 | 636 | } |
637 | 637 | $qb->add('orderBy', $orderBy); |