This commit is contained in:
Yuri Kuznetsov
2021-07-12 16:29:55 +03:00
parent bc9f66008d
commit 10957b5fdf
+12
View File
@@ -62,6 +62,18 @@ class RecordTree extends Record
if (!$this->subjectEntityType) {
$this->subjectEntityType = substr($this->entityType, 0, strlen($this->entityType) - 8);
}
if ($this->entityType === 'RecordTree') {
$this->entityType = null;
$this->subjectEntityType = null;
}
}
public function setEntityType(string $entityType): void
{
parent::setEntityType($entityType);
$this->subjectEntityType = substr($this->entityType, 0, strlen($this->entityType) - 8);
}
public function getTree(