digihum / omeka-s-ldap

LDAP plugin for Omeka-S
GNU General Public License v3.0
1 stars 0 forks source link

Deleting users can throw 'PDOException' with plugin enabled #1

Open TimHollies opened 7 years ago

TimHollies commented 7 years ago

With the plugin enabled deleting users can result in a foreign key error:

exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`db1`.`site`, CONSTRAINT `FK_694309E47E3C61F9` FOREIGN KEY (`owner_id`) REFERENCES `user` (`id`))' in /var/www/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91

This does not happen for every user.