Understanding Doctrine Mapping Types
Doctrine Mapping Types used in the @Column
annotation are neither SQL types nor PHP types but they are mapped to both. For instance, the Doctrine text
type will be casted to the string
PHP type in the entity and stored in a database column with the CLOB
type.
The following is a correspondence table for Doctrine Mapping Type of PHP type and SQL type:
Doctrine Mapping Type |
PHP Type |
SQL Type |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
object using the |
|
|
|
|
|
|
|
|
|