Propel
Propel copied to clipboard
Bug with archivable and auto_add_pk as default behaviors
It looks like if you add archivable and auto_add_pk as default behaviors to build.properties, you have to list them with auto_add_pk first, as follows:
propel.behavior.default = auto_add_pk, archivable,...
If you list them in the following order:
propel.behavior.default = archivable, auto_add_pk,...
The id field of the *_archive tables is created with AUTO_INCREMENT setting, preventing archived records from being inserted, since the archive method explicitly inserts the primary key.
Just had the same problem.