/** * Filter the query by a related \года object * * @param \года|ObjectCollection $�ода 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 ChildКалендарьQuery The current query, for fluid interface */ public function filterByгода($�ода, $comparison = null) { if ($�ода instanceof \года) { return $this->addUsingAlias(КалендарьTableMap::COL_ГОД, $�ода->getId(), $comparison); } elseif ($�ода instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(КалендарьTableMap::COL_ГОД, $�ода->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByгода() only accepts arguments of type \\года or Collection'); } }
/** * Declares an association between this object and a Childгода object. * * @param Childгода $v * @return $this|\производственныепрограммы The current object (for fluent API support) * @throws PropelException */ public function setгода(Childгода $v = null) { if ($v === null) { $this->setгод(NULL); } else { $this->setгод($v->getId()); } $this->aгода = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Childгода object, it will not be re-added. if ($v !== null) { $v->addпроизводственныепрограммы($this); } return $this; }
/** * Exclude object from result * * @param Childгода $�ода Object to remove from the list of results * * @return $this|ChildгодаQuery The current query, for fluid interface */ public function prune($�ода = null) { if ($�ода) { $this->addUsingAlias(годаTableMap::COL_ID, $�ода->getId(), Criteria::NOT_EQUAL); } return $this; }