Skip to content
Permalink
Browse files

Re-adding line that was removed in previous refactor

  • Loading branch information...
lorenzo committed Mar 6, 2016
1 parent 4363b58 commit 0530820f5b392d780787f9ee99ed546c48bb0d22
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ORM/Association/SelectableAssociationTrait.php
@@ -126,16 +126,16 @@ protected function _buildQuery($options)
*/
protected function _assertFieldsPresent($fetchQuery, $key)
{
$select = $fetchQuery->clause('select');
$select = $fetchQuery->aliasFields($fetchQuery->clause('select'));
if (empty($select)) {
return;
}
$missingFields = array_diff($key, $select) !== [];
if ($missingFields) {
$driver = $fetchQuery->connection()->driver();
$key = array_map([$driver, 'quoteIdentifier'], $key);
$missingFields = array_diff($key, $select) !== [];
$quoted = array_map([$driver, 'quoteIdentifier'], $key);
$missingFields = array_diff($quoted, $select) !== [];
}
if ($missingFields) {

0 comments on commit 0530820

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