mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
This commit is contained in:
parent
c76e401021
commit
1839d829bc
@ -7,11 +7,19 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
use Chill\MainBundle\Pagination\PaginatorInterface;
|
use Chill\MainBundle\Pagination\PaginatorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Class AdminClosingMotiveController
|
||||||
* Controller for closing motives
|
* Controller for closing motives
|
||||||
*
|
*
|
||||||
|
* @package Chill\PersonBundle\Controller
|
||||||
*/
|
*/
|
||||||
class AdminClosingMotiveController extends CRUDController
|
class AdminClosingMotiveController extends CRUDController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Chill\MainBundle\CRUD\Controller\string|string $action
|
||||||
|
* @param Request $request
|
||||||
|
* @return object
|
||||||
|
*/
|
||||||
protected function createEntity($action, Request $request): object
|
protected function createEntity($action, Request $request): object
|
||||||
{
|
{
|
||||||
$entity = parent::createEntity($action, $request);
|
$entity = parent::createEntity($action, $request);
|
||||||
@ -29,10 +37,16 @@ class AdminClosingMotiveController extends CRUDController
|
|||||||
|
|
||||||
$entity->setParent($parent);
|
$entity->setParent($parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $action
|
||||||
|
* @param \Doctrine\ORM\QueryBuilder|mixed $query
|
||||||
|
* @param Request $request
|
||||||
|
* @param PaginatorInterface $paginator
|
||||||
|
* @return \Doctrine\ORM\QueryBuilder|mixed
|
||||||
|
*/
|
||||||
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
|
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
|
||||||
{
|
{
|
||||||
/** @var \Doctrine\ORM\QueryBuilder $query */
|
/** @var \Doctrine\ORM\QueryBuilder $query */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user