/** * 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; }