EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
ORM entity link access removal
Yuriia343fa4825af
diff --git a/application/Espo/ORM/BaseEntity.php b/application/Espo/ORM/BaseEntity.phpindex 9d5a2ec8a3..c6655219e6 100644--- a/application/Espo/ORM/BaseEntity.php+++ b/application/Espo/ORM/BaseEntity.php@@ -252,25 +252,6 @@ class BaseEntity implements Entityreturn $this->getFromContainer($attribute);}- // @todo Remove support in v10.0.- if ($this->hasRelation($attribute) && $this->id) {- trigger_error(- "Accessing related records with Entity::get is deprecated. " .- "Use `\$entityManager->getRelation(...)->find()`.",- E_USER_DEPRECATED- );-- $isMany = in_array($this->getRelationType($attribute), [- RelationType::MANY_MANY,- RelationType::HAS_MANY,- RelationType::HAS_CHILDREN,- ]);-- return $isMany ?- $this->relations->getMany($attribute) :- $this->relations->getOne($attribute);- }-return null;}diff --git a/application/Espo/ORM/Repository/RDBSelectBuilder.php b/application/Espo/ORM/Repository/RDBSelectBuilder.phpindex f0a0240942..d2e8db4679 100644--- a/application/Espo/ORM/Repository/RDBSelectBuilder.php+++ b/application/Espo/ORM/Repository/RDBSelectBuilder.php@@ -112,21 +112,6 @@ class RDBSelectBuilder{$query = $this->builder->build();- $args = func_get_args();-- // For bc.- // @todo Remove in v10.0.- if (- count($args) &&- is_array($args[0]) &&- !empty($args[0]['withDeleted'])- ) {- $query = SelectBuilder::create()- ->clone($query)- ->withDeleted()- ->build();- }-$cloned = $this->repository->clone($query);$collection = $cloned