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