admin: fix new document category

This commit is contained in:
nobohan
2022-05-10 17:01:09 +02:00
parent f4652adbc2
commit b7ed658f96
3 changed files with 11 additions and 16 deletions

View File

@@ -61,15 +61,4 @@ class DocumentCategoryRepository implements ObjectRepository
{
return DocumentCategory::class;
}
public function nextIdInsideBundle()
{
$array_res = $this->em
->createQuery(
'SELECT MAX(c.idInsideBundle) + 1 FROM ChillDocStoreBundle:DocumentCategory c'
)
->getSingleResult();
return reset($array_res);
}
}