Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Versionable behaviour with ENUM fields #35
There appears to be a bit of an issue with the Versionable behaviour and ENUM type fields.
As ENUMs are handled via Propel rather than the database, they have particular getters and setters in place to correctly map their integer values to the right results. However, when a table uses the versionable behaviour, the versioning functions in the base class completely ignore these, eg:
public function addVersion($con = null)
The base version class then rejects this as it's passing through an integer rather than the expected values, giving an error such as:
I presume the fix should be to use the included getter, eg: