This commit is contained in:
Yuri Kuznetsov
2021-11-04 17:22:56 +02:00
parent 0b3f3e67dd
commit 1997da4343
@@ -250,7 +250,7 @@ class EntityManager
$serviceFactory = $this->serviceFactory;
if ($serviceFactory && $serviceFactory->checkExists($name)) {
if ($serviceFactory->checkExists($name)) {
throw new Conflict('Entity name \''.$name.'\' is not allowed.');
}
@@ -1249,7 +1249,7 @@ class EntityManager
if ($linkType === 'childrenToParent') {
$foreignLinkEntityTypeList = $params['foreignLinkEntityTypeList'] ?? null;
if ($linkForeign && is_array($foreignLinkEntityTypeList)) {
if (is_array($foreignLinkEntityTypeList)) {
$this->updateParentForeignLinks($entity, $link, $linkForeign, $foreignLinkEntityTypeList);
}
}