/** * 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КалендарьRelatedByдатавыдачи) { $this->aКалендарьRelatedByдатавыдачи->removeПредписанияRelatedByдатавыдачи($this); } if (null !== $this->aКонтролирующиеОрганы) { $this->aКонтролирующиеОрганы->removeПредписания($this); } if (null !== $this->aКалендарьRelatedByплановаядатаустранения) { $this->aКалендарьRelatedByплановаядатаустранения->removeПредписанияRelatedByплановаядатаустранения($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); } if (null !== $this->aТипыЗамечаний) { $this->aТипыЗамечаний->removeПредписания($this); } if (null !== $this->aКалендарьRelatedByфактическаядатаустранения) { $this->aКалендарьRelatedByфактическаядатаустранения->removeПредписанияRelatedByфактическаядатаустранения($this); } $this->id = 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); }
/** * 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; }