For some reason (as yet unknown) when adding an object in ActionScript as a relation to a model, this error is thrown. Perhaps it's some database-level requirement that isn't being satisfied and thus causing issues.
This occurs when a non-scalar value is used by Doctrine as a field identifier - if you have a composite key, Doctrine uses an identifier which is an array, and this fucks shit up for some reason.
For some reason (as yet unknown) when adding an object in ActionScript as a relation to a model, this error is thrown. Perhaps it's some database-level requirement that isn't being satisfied and thus causing issues.