Skip to content

Instantly share code, notes, and snippets.

@Stoakes
Created February 4, 2018 16:13
Show Gist options
  • Save Stoakes/d6614d60b1c0b27e1e444cd07168a18c to your computer and use it in GitHub Desktop.
Save Stoakes/d6614d60b1c0b27e1e444cd07168a18c to your computer and use it in GitHub Desktop.
Doctrine ORM EntityRepository count traces
Doctrine\ORM\ORMException:
Unrecognized field: 0
at vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:101
at Doctrine\ORM\ORMException::unrecognizedField(0)
(vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:1730)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getSelectConditionStatementColumnSQL(0, null)
(vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:1602)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getSelectConditionStatementSQL(0, object(Criteria), null)
(vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:1750)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getSelectConditionSQL(array(object(Criteria)))
(vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:1125)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getCountSQL(array(object(Criteria)))
(vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:836)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->count(array(object(Criteria)))
(vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:210)
at Doctrine\ORM\EntityRepository->count(array(object(Criteria)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment