Tuesday, November 25, 2008

Enum in Propel

Propel does not support Enum as a schema.xml column.type attribute, because Enum is mysql-specific.

Instead set the column.sqlType attribute to 'ENUM', column.type attribute to VARCHAR, and column.size attribute to 32 (assuming that each member of your enum could adequately be represented as a varchar 32)