/** * Removes a topic. * * @param Topic $topic The Topic to be removed * * @return void */ public function removeTopic(Topic $topic) { $this->topics->detach($topic); $this->_resetCounters(); $this->_resetLastPost(); $this->_resetLastTopic(); }
/** * Removes a readable object from the list of objects read by this user. * * @param ReadableInterface $readObject The object that is to be marked as unread. * * @return void */ public function removeReadObject(ReadableInterface $readObject) { if ($readObject instanceof Topic) { $this->readTopics->detach($readObject); } }