Skip to content

Commit

Permalink
updating sql walker to use quote strategy in joins
Browse files Browse the repository at this point in the history
  • Loading branch information
John Brown committed Jun 7, 2013
1 parent 9bea612 commit afb9c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Query/SqlWalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ public function walkJoinAssociationDeclaration($joinAssociationDeclaration, $joi
$relation = $this->queryComponents[$joinedDqlAlias]['relation'];
$targetClass = $this->em->getClassMetadata($relation['targetEntity']);
$sourceClass = $this->em->getClassMetadata($relation['sourceEntity']);
$targetTableName = $targetClass->getQuotedTableName($this->platform);
$targetTableName = $this->quoteStrategy->getTableName($targetClass,$this->platform);

$targetTableAlias = $this->getSQLTableAlias($targetClass->getTableName(), $joinedDqlAlias);
$sourceTableAlias = $this->getSQLTableAlias($sourceClass->getTableName(), $associationPathExpression->identificationVariable);
Expand Down

0 comments on commit afb9c82

Please sign in to comment.