mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 14:36:13 +00:00
fix: Creation of entity in createEntity().
Issue introduced in 5432242376f17b894247b97d3ec39cf5ec1e8bf4.
This commit is contained in:
parent
5d74b3ab0a
commit
afa8d7cb72
@ -44,14 +44,9 @@ abstract class AbstractCRUDController extends AbstractController
|
|||||||
return $e;
|
return $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an entity.
|
|
||||||
*
|
|
||||||
* @return object
|
|
||||||
*/
|
|
||||||
protected function createEntity(string $action, Request $request): object
|
protected function createEntity(string $action, Request $request): object
|
||||||
{
|
{
|
||||||
return $this->getEntityClass();
|
return new ($this->getEntityClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -159,11 +154,10 @@ abstract class AbstractCRUDController extends AbstractController
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the FQDN of the class.
|
* Get the FQDN of the class.
|
||||||
*
|
*
|
||||||
* @return string The FQDN of the class
|
* @return class-string The FQDN of the class
|
||||||
*/
|
*/
|
||||||
protected function getEntityClass(): string
|
protected function getEntityClass(): string
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user