fix: Creation of entity in createEntity().

Issue introduced in 5432242376f17b894247b97d3ec39cf5ec1e8bf4.
This commit is contained in:
Pol Dellaiera 2021-11-17 11:58:15 +01:00
parent afa8d7cb72
commit 4f56bb2464
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -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;
}
/**