orm refactoring
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user