You mean the entity's class name? That should come from ``objToStr``, if I'm reading it correctly:

https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/ORMInvalidArgumentException.php#L199