Исправление ошибок

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2021-04-11 11:51:59 +10:00
parent 778513b3bb
commit b3a5b7b51f

View File

@ -947,7 +947,7 @@ class Query extends Component implements QueryInterface
{ {
// Инициализация // Инициализация
$this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция'); $this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция');
$query->collection ?? $query->collection = self::checkArrayAndConvert($query->for); $this->collection ?? $this->collection = self::checkArrayAndConvert($this->for);
$data = Serializer::encode($columns); $data = Serializer::encode($columns);
@ -994,7 +994,7 @@ class Query extends Component implements QueryInterface
// Инициализация // Инициализация
$this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция'); $this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция');
$this->for ?? $this->for = $this->in; $this->for ?? $this->for = $this->in;
$query->collection ?? $query->collection = self::checkArrayAndConvert($query->for); $this->collection ?? $this->collection = self::checkArrayAndConvert($this->for);
$clauses = [ $clauses = [
static::genFor($this->for), static::genFor($this->for),
@ -1046,7 +1046,7 @@ class Query extends Component implements QueryInterface
// Инициализация // Инициализация
$this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция'); $this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция');
$this->for ?? $this->for = $this->in; $this->for ?? $this->for = $this->in;
$query->collection ?? $query->collection = self::checkArrayAndConvert($query->for); $this->collection ?? $this->collection = self::checkArrayAndConvert($this->for);
$clauses = [ $clauses = [
static::genFor($this->for), static::genFor($this->for),