propelorm/Propel — Issue #281: Can't use commas in ENUM values
Author: mattyway
Created: 2012-02-06 02:29:20+00:00
State: open

Currently due to how the generator parses the valueSet attribute of an enum column, it is impossible to use a comma as part of value.

Example set of values:
* Foo
* Bar
* Foo, Bar

The last value will be split into two pieces.

This could be solved by replacing the explode function on [line 232 in Column.php](https://github.com/propelorm/Propel/blob/master/generator/lib/model/Column.php#L232) with PHP's [str_getcsv](http://php.net/manual/en/function.str-getcsv.php) which would respect escaping and quoting.