Beispiel #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildJpegFile $jpegFile Object to remove from the list of results
  *
  * @return $this|ChildJpegFileQuery The current query, for fluid interface
  */
 public function prune($jpegFile = null)
 {
     if ($jpegFile) {
         $this->addUsingAlias(JpegFileTableMap::COL_MEDIAFILE_IDMEDIAFILE, $jpegFile->getMediafileIdmediafile(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Beispiel #2
0
 /**
  * Filter the query by a related \JpegFile object
  *
  * @param \JpegFile|ObjectCollection $jpegFile the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildMediafileQuery The current query, for fluid interface
  */
 public function filterByJpegFile($jpegFile, $comparison = null)
 {
     if ($jpegFile instanceof \JpegFile) {
         return $this->addUsingAlias(MediafileTableMap::COL_IDMEDIAFILE, $jpegFile->getMediafileIdmediafile(), $comparison);
     } elseif ($jpegFile instanceof ObjectCollection) {
         return $this->useJpegFileQuery()->filterByPrimaryKeys($jpegFile->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByJpegFile() only accepts arguments of type \\JpegFile or Collection');
     }
 }