fix record tree entity removal when no real subject used
This commit is contained in:
@@ -175,6 +175,11 @@ class RecordTree extends Record
|
||||
{
|
||||
$entityType = $this->getSubjectEntityType();
|
||||
|
||||
// If used without an actual subject entity.
|
||||
if (!$this->entityManager->hasRepository($entityType)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$query = $this->selectBuilderFactory
|
||||
->create()
|
||||
->from($entityType)
|
||||
|
||||
Reference in New Issue
Block a user