I am using Doctrine 2 and am unable to delete an entity.
When I try to access a property/method of the entity, it returns the value as expected.
Doctrine\Common\Util\Debug::dump($entity->getId());
//int(17)
When I try to access the whole entity I get an error (the same error when I get when try to delete)
Doctrine\Common\Util\Debug::dump($entity);
//Syntax error or access violation: 1066 Not unique table/alias: 't7'