mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	fix query customization in crud controller
This commit is contained in:
		| @@ -342,13 +342,19 @@ class CRUDController extends AbstractController | ||||
|      */ | ||||
|     protected function buildQueryEntities(string $action, Request $request) | ||||
|     { | ||||
|         return $this->getDoctrine()->getManager() | ||||
|         $query =  $this->getDoctrine()->getManager() | ||||
|             ->createQueryBuilder() | ||||
|             ->select('e') | ||||
|             ->from($this->getEntityClass(), 'e') | ||||
|             ; | ||||
|  | ||||
|         $this->customizeQuery($action, $request, $query); | ||||
|  | ||||
|         return $query; | ||||
|     } | ||||
|  | ||||
|     protected function customizeQuery(string $action, Request $request, $query): void {} | ||||
|  | ||||
|     /** | ||||
|      * Query the entity. | ||||
|      * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user