Fixed Doctrine types documentation
Added exceptions in Doctrine types when the value is not of the expected type