/**
* @var int<-32768, 32767>
*/
#[ORM\Column(name: 'sorting_order', type: 'smallint', options: ['default' => 0])]
public int $order = 0;
Property Entity::$order type mapping mismatch: database can contain int but property expects int<-32768, 32767>.
🪪 doctrine.columnType
The following code:
Reports:
But expected:
MySQL: https://dev.mysql.com/doc/refman/8.4/en/integer-types.html
PostgreSQL: https://www.postgresql.org/docs/current/datatype-numeric.html
Doctrine: https://www.doctrine-project.org/projects/doctrine-dbal/en/4.2/reference/types.html#smallint