/**
  * 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);
     }
     $this->id = null;
     $this->тип_программы = null;
     $this->год = null;
     $this->месяц = null;
     $this->план = null;
     $this->факт = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
コード例 #2
0
 /**
  * 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');
     }
 }
 /**
  * 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;
 }
コード例 #4
0
 /**
  * @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(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');
     }
 }