Here is the piece of code:
The method `getDoctrineTypeMapping` throw an exception if the type is not found. But for example if you have an enum type (see the doctrine cookbook on the subject), the type is setted as comment.
Doctrine throw the exception before having the occasion to get the type via comment.
Here are two solutions:
- Check for comment before throw the exception
- Adding the enum type to the doctrine platform and mapping it to string