FabioBatSilva/doctrine2 — comment on commit 9b2fe514f88cfda40c855f5823b194e14ef022ed
File: lib/Doctrine/ORM/Query/SqlWalker.php line 1097
By guilhermeblanco:

This would be changed from $class->name to $class->fieldMappings[$fieldName]['type']