Skip to content

Commit

Permalink
Mark belongsTo and count queries as not primary too.
Browse files Browse the repository at this point in the history
  • Loading branch information
bar committed Mar 15, 2014
1 parent e97bf6a commit d1c67fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Association.php
Expand Up @@ -418,7 +418,7 @@ public function attachTo(Query $query, array $options = []) {
}

$options['conditions'] = $query->newExpr()->add($options['conditions']);
$dummy = $target->query();
$dummy = $target->query()->primary(false);

if (!empty($options['queryBuilder'])) {
$dummy = $options['queryBuilder']($dummy);
Expand Down

0 comments on commit d1c67fe

Please sign in to comment.