Mapeo de tipos de datos de las BD con DOCTRINE
A fin de realizar el mapeo de la base de datos a los objetos PHP se facilita la siguiente tabla que nos orientará sobre su implementación. Doctrine PHP Database vendor Name Version Type smallint integer MySQL all SMALLINT UNSIGNED [10] AUTO_INCREMENT [11] Drizzle all INT UNSIGNED [10] AUTO_INCREMENT [11] PostgreSQL all SMALLINT Oracle all NUMBER(5) SQL Server all SMALLINT IDENTITY [11] SQL Anywhere all UNSIGNED [10] SMALLINT IDENTITY [11] SQLite all INTEGER [16] integer integer MySQL all INT UNSIGNED [10] AUTO_INCREMENT [11] Drizzle PostgreSQL all INT [12] SERIAL [11] Oracle all NUMBER(10) SQL Server all INT IDENTITY [11] SQL Anywhere all UNSIGNED [10] INT IDENTITY [11] SQLite all INTEGER [16] bigint string [8] MySQL all BIGINT UNSIGNED [10] AUTO_INCREMENT [11] Drizzle PostgreSQL all BIGINT [12] BIGSERIAL [11] Oracle all NUMBER(20) SQL Server all BIGINT IDENT