/**
  * Declares an association between this object and a ChildDiaporama object.
  *
  * @param                  ChildDiaporama $v
  * @return                 \Diaporamas\Model\DiaporamaVersion The current object (for fluent API support)
  * @throws PropelException
  */
 public function setDiaporama(ChildDiaporama $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aDiaporama = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildDiaporama object, it will not be re-added.
     if ($v !== null) {
         $v->addDiaporamaVersion($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \Diaporamas\Model\Diaporama object
  *
  * @param \Diaporamas\Model\Diaporama|ObjectCollection $diaporama The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildDiaporamaVersionQuery The current query, for fluid interface
  */
 public function filterByDiaporama($diaporama, $comparison = null)
 {
     if ($diaporama instanceof \Diaporamas\Model\Diaporama) {
         return $this->addUsingAlias(DiaporamaVersionTableMap::ID, $diaporama->getId(), $comparison);
     } elseif ($diaporama instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(DiaporamaVersionTableMap::ID, $diaporama->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByDiaporama() only accepts arguments of type \\Diaporamas\\Model\\Diaporama or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildDiaporama $diaporama Object to remove from the list of results
  *
  * @return ChildDiaporamaQuery The current query, for fluid interface
  */
 public function prune($diaporama = null)
 {
     if ($diaporama) {
         $this->addUsingAlias(DiaporamaTableMap::ID, $diaporama->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }