/** * 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->aRights) { $this->aRights->removeRRightsFortemplate($this); } if (null !== $this->aTemplatenames) { $this->aTemplatenames->removeRRightsFortemplate($this); } $this->_rightid = null; $this->_templateid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aTemplatenames) { $this->aTemplatenames->removeRTemplatenamesInchapter($this); } if (null !== $this->aFormats) { $this->aFormats->removeRTemplatenamesInchapter($this); } $this->_templateid = null; $this->_chapterid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \Templatenames object * * @param \Templatenames|ObjectCollection $templatenames 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 ChildContributionsQuery The current query, for fluid interface */ public function filterByTemplatenames($templatenames, $comparison = null) { if ($templatenames instanceof \Templatenames) { return $this->addUsingAlias(ContributionsTableMap::COL__FORTEMPLATE, $templatenames->getId(), $comparison); } elseif ($templatenames instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ContributionsTableMap::COL__FORTEMPLATE, $templatenames->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByTemplatenames() only accepts arguments of type \\Templatenames or Collection'); } }
/** * 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->auserSysRef) { $this->auserSysRef->removeContributions($this); } if (null !== $this->aFormats) { $this->aFormats->removeContributions($this); } if (null !== $this->aIssues) { $this->aIssues->removeContributions($this); } if (null !== $this->aTemplatenames) { $this->aTemplatenames->removeContributions($this); } $this->id = null; $this->_fortemplate = null; $this->_forissue = null; $this->_name = null; $this->_status = null; $this->_newdate = null; $this->_moddate = null; $this->__user__ = null; $this->__config__ = null; $this->_forchapter = null; $this->__parentnode__ = null; $this->__sort__ = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aTemplatenames) { $this->aTemplatenames->removeTemplates($this); } $this->id = null; $this->_fortemplate = null; $this->_fieldname = null; $this->_helpdescription = null; $this->_helpimage = null; $this->_fieldtype = null; $this->__config__ = null; $this->__split__ = null; $this->__parentnode__ = null; $this->__sort__ = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildTemplatenames $templatenames Object to remove from the list of results * * @return $this|ChildTemplatenamesQuery The current query, for fluid interface */ public function prune($templatenames = null) { if ($templatenames) { $this->addUsingAlias(TemplatenamesTableMap::COL_ID, $templatenames->getId(), Criteria::NOT_EQUAL); } return $this; }