/** * 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->дата = null; $this->год = null; $this->полугодие = null; $this->квартал = 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); }
/** * 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; }
/** * 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'); } }