refactoring

This commit is contained in:
Yuri Kuznetsov
2021-05-13 14:43:55 +03:00
parent db4663cbf9
commit f1306dfbee
5 changed files with 45 additions and 31 deletions

View File

@@ -47,7 +47,7 @@ use Espo\Core\{
ServiceFactory,
Api\Request,
Api\Response,
Record\Crud as CrudService,
Record\Service as RecordService,
Select\SearchParams,
Di,
};
@@ -122,7 +122,7 @@ class RecordBase extends Base implements Di\EntityManagerAware
return $this->name;
}
protected function getRecordService(?string $entityType = null): CrudService
protected function getRecordService(?string $entityType = null): RecordService
{
return $this->recordServiceContainer->get($entityType ?? $this->getEntityType());
}