replace empty function
This commit is contained in:
parent
8da32c3969
commit
4164640182
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class SequenceCommandController extends CommandController
|
||||||
public function cleanSequenceInsertsCommand(array $typesToClean = [])
|
public function cleanSequenceInsertsCommand(array $typesToClean = [])
|
||||||
{
|
{
|
||||||
$cleanArray = [];
|
$cleanArray = [];
|
||||||
if (empty($typesToClean)) {
|
if ($typesToClean === []) {
|
||||||
$results = $this->entityManager
|
$results = $this->entityManager
|
||||||
->createQuery('SELECT i.type, MAX(i.number) max_number FROM ' . Insert::class . ' i GROUP BY i.type')
|
->createQuery('SELECT i.type, MAX(i.number) max_number FROM ' . Insert::class . ' i GROUP BY i.type')
|
||||||
->getScalarResult();
|
->getScalarResult();
|
||||||
|
|
Loading…
Reference in a new issue