Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Apr 5, 2015
1 parent 64aca55 commit 4c8f4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kdyby/Doctrine/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ private function autoJoin(&$key)
continue;
}

$aliasLength = 0;
$j = 0;
do {
$joinAs = substr($property, 0, 1) . number_format($aliasLength++, 0);
$joinAs = substr($property, 0, 1) . (string) $j++;
} while (isset($this->criteriaJoins[$joinAs]));
$this->criteriaJoins[$joinAs] = array();

Expand Down

0 comments on commit 4c8f4a7

Please sign in to comment.