public function delete($deleteSymlinks = FALSE) { $this->_mapper->access($this, 'OFS-DELETE'); if (!isNull($parent = $this->getParent())) { $this->_mapper->access($this->getParent(), 'OFS-WRITE-CONTENT'); } if ($deleteSymlinks) { $this->_mapper->entityDeleteSymlinks($this); } return parent::delete(); }