We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feea063 commit bc55d58Copy full SHA for bc55d58
framework/db/ar/CActiveFinder.php
@@ -442,7 +442,7 @@ public function find($criteria=null)
442
}
443
elseif(!$this->_joined && !empty($this->_parent->records)) // not joined before
444
{
445
- if (count($this->relation->foreignKey) === count($this->_parent->_pkAlias)) {
+ if (empty($this->relation->through) && count($this->relation->foreignKey) === count($this->_parent->_pkAlias)) {
446
$query = new CJoinQuery($this);
447
$this->_joined = true;
448
$query->selects = array(); // reset to not receive the extra keys
0 commit comments