Use Doctrine to convert data types when inserting/updating data.