mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix: Creation of entity in createEntity().
Issue introduced in 5432242376f17b894247b97d3ec39cf5ec1e8bf4.
This commit is contained in:
parent
afa8d7cb72
commit
4f56bb2464
@ -46,7 +46,9 @@ abstract class AbstractCRUDController extends AbstractController
|
||||
|
||||
protected function createEntity(string $action, Request $request): object
|
||||
{
|
||||
return new ($this->getEntityClass());
|
||||
$class = $this->getEntityClass();
|
||||
|
||||
return new $class;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user