This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
join colums not reset #279
Comments
case self::COLUMNS:
$this->columns = array();
foreach ($this->joins as &$join){
$join['columns'] = [];
}
break; |
when work with paginator, sql like this: select count(*), b.id, b.created_at from A as a inner join B as b on A.bid = b.id limit 1; |
Sorry, I don't understand. Please describe your problem with full sentence. This will help. Maybe you mean this cloning: https://github.com/zendframework/zend-paginator/blob/master/src/Adapter/DbSelect.php#L142-L145 |
@froschdesign thank you. $select = (new (Select))->join('B b', 'a.bid = b.id', 'id, created_at');
$select->reset(Select::COLUMNS);
$select->reset(Select::LIMIT);
$select->reset(Select::OFFSET);
$select->reset(Select::ORDER); the columns |
can something like this solve this problem?
It will re-init the joins without any column set. |
This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#60. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
zend-db/src/Sql/Select.php
Line 426 in 748f065
The text was updated successfully, but these errors were encountered: