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