Can't delete attribute

Permalink 1 user found helpful
Hi,

When I try to delete an attribute, it gives an violation:

Doctrine \ DBAL \ Exception \ ForeignKeyConstraintViolationException
An exception occurred while executing 'DELETE FROM AttributeValues WHERE avID = ?' with params [217]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`c58`.`atNumber`, CONSTRAINT `FK_41BA30B5A2A82A5D` FOREIGN KEY (`avID`) REFERENCES `AttributeValues` (`avID`))

SnefIT