Is it useful to validate type of data with the Type Constraint with Doctrine in Symfony?
Indeed, when you try to put data with wrong type in the database, Symfony throws an exception with the following message:
The type of the "name" attribute must be "string", "integer" given."
Thus, there is a priori no danger of SQL injection.
Moreover, in every tutorial I have seen, there was no Type checking.
What do you think about it?