emailSender usage and fixes

This commit is contained in:
Yuri Kuznetsov
2020-09-04 15:35:09 +03:00
parent 396ce79d22
commit 7645fa4e90
8 changed files with 96 additions and 51 deletions
+3
View File
@@ -152,6 +152,9 @@ class BaseEntity implements Entity
// @todo Remove this.
if ($this->hasRelation($name) && $this->id && $this->entityManager) {
$e = new \Exception();
echo $e->getTraceAsString();
die;
trigger_error(
"Accessing related records with Entity::get is deprecated. Use \$entityManager->getRelation(...)->find()",
E_USER_DEPRECATED