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