views:

11

answers:

1

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'
A: 

It would be nice to know how you defined your entity in order to be of help.

xPheRe