/** * Sets a single ChildJpegFile object as related to this object by a one-to-one relationship. * * @param ChildJpegFile $v ChildJpegFile * @return $this|\Mediafile The current object (for fluent API support) * @throws PropelException */ public function setJpegFile(ChildJpegFile $v = null) { $this->singleJpegFile = $v; // Make sure that that the passed-in ChildJpegFile isn't already associated with this object if ($v !== null && $v->getMediafile(null, false) === null) { $v->setMediafile($this); } return $this; }
/** * 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; }
/** * 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'); } }