Skip to content
Permalink
Browse files

Disable autoFields for association subqueries

Causes problems because it loads all fields for subquries
  • Loading branch information...
Laykou committed Sep 3, 2014
1 parent f532d28 commit ccb25b0829e5b69700a715f65fb8713b3585e742
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/ORM/Association/SelectableAssociationTrait.php
@@ -160,6 +160,7 @@ protected function _addFilteringCondition($query, $key, $filter) {
*/
protected function _buildSubquery($query) {
$filterQuery = clone $query;
$filterQuery->autoFields(false);
$filterQuery->limit(null);
$filterQuery->order([], true);
$filterQuery->contain([], true);

0 comments on commit ccb25b0

Please sign in to comment.
You can’t perform that action at this time.