Esempio n. 1
0
 /**
  * Removes a child forum.
  *
  * @param Forum $child The Forum to be removed
  *
  * @return void
  */
 public function removeChild(Forum $child)
 {
     $this->children->detach($child);
 }
Esempio n. 2
0
 /**
  * Unsubscribes this user from a subscribeable object.
  *
  * @param SubscribeableInterface $object The object that is to be unsubscribed.
  *
  * @return void
  */
 public function removeSubscription(SubscribeableInterface $object)
 {
     if ($object instanceof Topic) {
         $this->topicSubscriptions->detach($object);
     } elseif ($object instanceof Forum) {
         $this->forumSubscriptions->detach($object);
     }
 }