filterByFolder($this->getFolder()); } /** * {@inheritDoc} */ public function preInsert(ConnectionInterface $con = null) { $this->setPosition($this->getNextPosition()); return true; } /** * Set Document parent id * * @param int $parentId parent id * * @return $this */ public function setParentId($parentId) { $this->setFolderId($parentId); return $this; } /** * Get Document parent id * * @return int parent id */ public function getParentId() { return $this->getFolderId(); } public function preDelete(ConnectionInterface $con = null) { $this->reorderBeforeDelete( array( "folder_id" => $this->getFolderId(), ) ); return true; } }