Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/f9a50400c71fc3ec556f to your computer and use it in GitHub Desktop.
Save doctrinebot/f9a50400c71fc3ec556f to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-198 - https://github.com/doctrine/doctrine2/issues/2653
Index: ORM/EntityRepository.php
===================================================================
--- ORM/EntityRepository.php (revision 6881)
+++ ORM/EntityRepository.php (working copy)
@@ -63,7 +63,7 @@
{
return $this->_em->createQueryBuilder()
->select($alias)
- ->from($this->_entityName);
+ ->from($this->_entityName." ".$alias);
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment