/**
  * Declares an association between this object and a ChildChannel object.
  *
  * @param  ChildChannel $v
  * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
  * @throws PropelException
  */
 public function setChannel(ChildChannel $v = null)
 {
     if ($v === null) {
         $this->setChannelId(NULL);
     } else {
         $this->setChannelId($v->getId());
     }
     $this->aChannel = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildChannel object, it will not be re-added.
     if ($v !== null) {
         $v->addSubscription($this);
     }
     return $this;
 }
 /**
  * Exclude object from result
  *
  * @param   ChildChannel $channel Object to remove from the list of results
  *
  * @return $this|ChildChannelQuery The current query, for fluid interface
  */
 public function prune($channel = null)
 {
     if ($channel) {
         $this->addUsingAlias(ChannelTableMap::COL_ID, $channel->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \Jalle19\StatusManager\Database\Channel object
  *
  * @param \Jalle19\StatusManager\Database\Channel|ObjectCollection $channel The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildSubscriptionQuery The current query, for fluid interface
  */
 public function filterByChannel($channel, $comparison = null)
 {
     if ($channel instanceof \Jalle19\StatusManager\Database\Channel) {
         return $this->addUsingAlias(SubscriptionTableMap::COL_CHANNEL_ID, $channel->getId(), $comparison);
     } elseif ($channel instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SubscriptionTableMap::COL_CHANNEL_ID, $channel->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByChannel() only accepts arguments of type \\Jalle19\\StatusManager\\Database\\Channel or Collection');
     }
 }