Skip to content

Consider removing ability to exclude tables from purging #322

@alcaeus

Description

@alcaeus

When adding the excluded option to the Symfony command in doctrine/DoctrineFixturesBundle#289, a couple of questions came up with respect to how this is supposed to handle duplicate key constraints in fixtures (in case fixtures are loaded that write to tables that weren't purged), and how to handle cascading foreign key constraints that would remove data from tables that aren't supposed to be purged.

Since those are problems with the concept of excluding tables from purging (and not with the integration of this library into Symfony), I suggest discussing the issues around this functionality here.

Given the potentially severe issues, I would suggest deprecating the functionality in the next minor release and removing it in the next major version. Since the library is designed to pre-populate a database with initial data, I'm not sure if this is a use-case we really want to cover.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions