/** * 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; }
/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aКалендарь) { $this->aКалендарь->removeмтр($this); } if (null !== $this->aподрядчикимтр) { $this->aподрядчикимтр->removeмтр($this); } if (null !== $this->aПроекты) { $this->aПроекты->removeмтр($this); } if (null !== $this->aстатуссостояниятехники) { $this->aстатуссостояниятехники->removeмтр($this); } if (null !== $this->aтипытехникимтр) { $this->aтипытехникимтр->removeмтр($this); } $this->id = null; $this->vin = null; $this->тип_техники = null; $this->дата = null; $this->состояние_техники = null; $this->подрядчик = null; $this->проект = null; $this->дата_отчёта = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }