RepositoryQuery: getQuery() might be called during prepareQueryColumns()
This commit is contained in:
parent
08f8fe6f49
commit
fd931e4232
|
@ -77,10 +77,8 @@ class RepositoryQuery implements QueryInterface, Iterator
|
||||||
public function from($target, array $columns = null)
|
public function from($target, array $columns = null)
|
||||||
{
|
{
|
||||||
$target = $this->repository->requireTable($target, $this);
|
$target = $this->repository->requireTable($target, $this);
|
||||||
$this->query = $this->repository
|
$this->query = $this->repository->getDataSource()->select()->from($target);
|
||||||
->getDataSource()
|
$this->query->columns($this->prepareQueryColumns($target, $columns));
|
||||||
->select()
|
|
||||||
->from($target, $this->prepareQueryColumns($target, $columns));
|
|
||||||
$this->target = $target;
|
$this->target = $target;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue