Created
August 30, 2013 10:20
-
-
Save ondrejmirtes/6388434 to your computer and use it in GitHub Desktop.
Doctrine bugreport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @SuppressWarnings(PHPMD.UnusedPrivateField) using GetSet | |
* @Entity | |
*/ | |
class AffiliatePartner extends User | |
{ | |
/** | |
* @var string | |
* @Column | |
* | |
* @get | |
* @set | |
*/ | |
private $name; | |
// ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$em->createQuery(' | |
SELECT e FROM User | |
GROUP BY e | |
')->getResult(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... SQLSTATE[42803]: Grouping error: 7 ERROR: column "a5_.name" must appear in the GROUP BY clause or be used in an aggregate function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Entity | |
* @Table(name="`user`") | |
* @InheritanceType("JOINED") | |
* @DiscriminatorColumn(name="type", type="string") | |
* @DiscriminatorMap({ | |
* "admin" = "Ticketon\Model\User\Admin", | |
* "customer" = "Ticketon\Model\User\Customer", | |
* "partner" = "Ticketon\Model\User\Partner", | |
* "cashier" = "Ticketon\Model\User\Cashier", | |
* "affiliatePartner" = "Ticketon\Model\User\AffiliatePartner" | |
* }) | |
*/ | |
abstract class User extends \Medio\Model\Entity\SimpleEntity | |
{ | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment