You are currently reading the 1.2 documentation. Switch to 2.2  2.1  2.0 

Column Lengths

In Doctrine column length is an integer that specifies the column length. Some column types depend not only the given portable type but also on the given length. For example type string with length 1000 will be translated into native type TEXT on mysql.

The length is different depending on the type of column you are using:

  • integer - Length is the the number of bytes the integer occupies.
  • string - Number of the characters allowed in the string.
  • float/decimal - Total number of characters allowed excluding the decimal.
  • enum - If using native enum length does not apply but if using emulated enums then it is just the string length of the column value.

Questions and Feedback

If you find a problem with the documentation or have a suggestion, please register and open a ticket.

If you need support or have a technical question, you can post to the user mailing-list.