public function addTorrentPeer(PwTorrentPeerDm $dm) { if (($result = $dm->beforeAdd()) !== true) { return $result; } return $this->_getDao(self::FETCH_MAIN)->addTorrentPeer($dm->getData()); }