Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 /**
  * 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);
     }
 }