/** * Filter the query by a related \SpoilerWiki\Milestone object * * @param \SpoilerWiki\Milestone|ObjectCollection $milestone 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 ChildSummaryQuery The current query, for fluid interface */ public function filterByupdatedAt($milestone, $comparison = null) { if ($milestone instanceof \SpoilerWiki\Milestone) { return $this->addUsingAlias(SummaryTableMap::COL_INTRODUCED_AT, $milestone->getId(), $comparison); } elseif ($milestone instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(SummaryTableMap::COL_INTRODUCED_AT, $milestone->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByupdatedAt() only accepts arguments of type \\SpoilerWiki\\Milestone or Collection'); } }
/** * Declares an association between this object and a ChildMilestone object. * * @param ChildMilestone $v * @return $this|\SpoilerWiki\Snippet The current object (for fluent API support) * @throws PropelException */ public function setintroducedAt(ChildMilestone $v = null) { if ($v === null) { $this->setIntroducedAt(NULL); } else { $this->setIntroducedAt($v->getId()); } $this->aintroducedAt = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildMilestone object, it will not be re-added. if ($v !== null) { $v->addSnippet($this); } return $this; }
/** * Exclude object from result * * @param ChildMilestone $milestone Object to remove from the list of results * * @return $this|ChildMilestoneQuery The current query, for fluid interface */ public function prune($milestone = null) { if ($milestone) { $this->addUsingAlias(MilestoneTableMap::COL_ID, $milestone->getId(), Criteria::NOT_EQUAL); } return $this; }