This commit is contained in:
Yuri Kuznetsov
2021-04-21 15:19:37 +03:00
parent f9e34ce9d5
commit e183f39dfd
36 changed files with 215 additions and 104 deletions
@@ -33,13 +33,15 @@ use Espo\ORM\Entity;
class Integration extends \Espo\Core\Repositories\Database
{
public function get(?string $id = null) : ?Entity
public function get(?string $id = null): ?Entity
{
$entity = parent::get($id);
if (empty($entity) && !empty($id)) {
$entity = $this->get();
$entity->id = $id;
}
return $entity;
}
}