Skip to content

Root node delete #5

@stipic

Description

@stipic

I can't figure out how or why it won't let me delete the root node

There is a ForeignKeyConstraintViolationException for the Doctrine entity associated with "InteroperabilityLevel". Solution: disable the "delete" action for this CRUD controller or configure the "cascade={"remove"}" attribute for the related field in the Doctrine entity. Full exception: An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails

Try to add just one root node and try delete him.

I can't add cascade: ['remove'] because gedmo tree propertys are in AbstractTreeItem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions