- Bugfixes in search request, WIP on JsonTrait
This commit is contained in:
1 parent
e3314f40ac
commit
b601939459
5 files changed
+10
-6
No files matched your search
+3
-2
@@ -1055,9 +1055,10 @@ class Repository implements RepositoryInterface
|
||||
|
||||
public function instanciateEntity(? string $entityClass = null) : object
|
||||
{
|
||||
$entityClass ??= $this->entityClass;
|
||||
$entity = ( new \ReflectionClass($entityClass ?? $this->entityClass) )->newInstanceWithoutConstructor();
|
||||
$entity->initializeEntity();
|
||||
|
||||
return new $entityClass;
|
||||
return $entity;
|
||||
}
|
||||
|
||||
public function hasFilters() : bool
|
||||
|
||||
Reference in new issue
Block a user