Skip to content

how to define relations #17

@jelmerbou

Description

@jelmerbou

I have one product model with versioned data and I got a category model that has one or many products. When i want to delete a category it has to check if there are products related to the category. How to define the relation that it goes to the products_version table to check if the category_id exists here before deleting it?

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