Incorrect mysql tinyint (2) mapping as logical with learning

I redid my database with symfony2 and the doctrine with the commands:

php app/console doctrine:mapping:convert php app/console doctrine:mapping:import php app/console doctrine:generate:entities 

But my field was displayed as boolean instead of tinyint (2).

Why is it displayed as logical?

+6
source share
1 answer

tinyint (regardless of length) maps to the boolean type on the MySQL DBAL platform.

Also note that the entity generator is not a reliable tool: it is just designed to assist you when starting up with larger circuits.

+13
source

All Articles