Delete linked objects

This commit is contained in:
Julius Haertl
2016-10-15 12:05:27 +02:00
parent db97043c97
commit b82b1ef2f0
6 changed files with 63 additions and 19 deletions

View File

@@ -56,7 +56,8 @@ class StackMapper extends Mapper implements IPermissionMapper {
public function delete(Entity $entity) {
// FIXME: delete linked elements, because owncloud doesn't support foreign keys for apps
// delete cards on stack
$this->cardMapper->deleteByStack($entity->getId());
return parent::delete($entity);
}