Skip to content

Propel <behavior name="versionable" /> doesn't preserve foreign key relationsships #1983

@kasparsatke

Description

@kasparsatke

I am working on a table that has multiple foreign keys. This table is versionable.

Once I tried to call foreign keys on a version of the table, I got an error like "unknown method".

I then checked the DB and found out that in the versions table foreign keys are not preserved.

I looked a bit around the Propel documentation and found out that the behavior "archivable" does have the option to preserve foreign keys - if I do understand it the right way. The behavior "archivable" has parameters like "inherit_foreign_key_relations" and "inherit_foreign_key_constraints" and it sounds like they would solve my issue. Unfortunately, I did not find any documentation if those parameters are also available for the behaviour "versionable". Quickly looking through the source code I also did not find any evidence.

Saying this, I would like to file a feature request/bug report to enable calling foreign key objects on versioned tables.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions