fix record tree entity removal when no real subject used

This commit is contained in:
Yuri Kuznetsov
2025-02-02 13:59:05 +02:00
parent abd9fb9985
commit bd13d45207
+5
View File
@@ -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)