/**
  * @param Childтипытехникимтр $�ипытехникимтр The Childтипытехникимтр object to add.
  */
 protected function doAddтипытехникимтр(Childтипытехникимтр $�ипытехникимтр)
 {
     $this->collтипытехникимтрs[] = $�ипытехникимтр;
     $�ипытехникимтр->setотображаемыетипытехникимтр($this);
 }
 /**
  * Filter the query by a related \типытехникимтр object
  *
  * @param \типытехникимтр|ObjectCollection $�ипытехникимтр the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildотображаемыетипытехникимтрQuery The current query, for fluid interface
  */
 public function filterByтипытехникимтр($�ипытехникимтр, $comparison = null)
 {
     if ($�ипытехникимтр instanceof \типытехникимтр) {
         return $this->addUsingAlias(отображаемыетипытехникимтрTableMap::COL_ID, $�ипытехникимтр->getотображаемыйтиптехники(), $comparison);
     } elseif ($�ипытехникимтр instanceof ObjectCollection) {
         return $this->useтипытехникимтрQuery()->filterByPrimaryKeys($�ипытехникимтр->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByтипытехникимтр() only accepts arguments of type \\типытехникимтр or Collection');
     }
 }
Пример #3
0
 /**
  * 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);
 }
 /**
  * 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;
 }