orm refactoring

This commit is contained in:
Yuri Kuznetsov
2021-07-25 10:15:00 +03:00
parent bf943cc706
commit 49f12ac82f
12 changed files with 197 additions and 59 deletions
+18
View File
@@ -29,6 +29,8 @@
namespace Espo\ORM\Query;
use Espo\ORM\Query\Part\WhereClause;
use RuntimeException;
/**
@@ -47,6 +49,22 @@ class Delete implements Query
return $this->params['from'];
}
/**
* Get a from-alias
*/
public function getFromAlias(): ?string
{
return $this->params['fromAlias'] ?? null;
}
/**
* Get a LIMIT.
*/
public function getLimit(): ?int
{
return $this->params['limit'] ?? null;
}
private function validateRawParams(array $params): void
{
$this->validateRawParamsSelecting($params);