/** * 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); }
/** * 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->removeRRightsForformat($this); } if (null !== $this->aFormats) { $this->aFormats->removeRRightsForformat($this); } $this->_rightid = null; $this->_formatid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \Formats object * * @param \Formats|ObjectCollection $formats 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 filterByFormats($formats, $comparison = null) { if ($formats instanceof \Formats) { return $this->addUsingAlias(ContributionsTableMap::COL__FORCHAPTER, $formats->getId(), $comparison); } elseif ($formats instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ContributionsTableMap::COL__FORCHAPTER, $formats->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByFormats() only accepts arguments of type \\Formats or Collection'); } }
/** * Filter the query by a related \Formats object * * @param \Formats|ObjectCollection $formats the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildBooksQuery The current query, for fluid interface */ public function filterByFormats($formats, $comparison = null) { if ($formats instanceof \Formats) { return $this->addUsingAlias(BooksTableMap::COL_ID, $formats->getForbook(), $comparison); } elseif ($formats instanceof ObjectCollection) { return $this->useFormatsQuery()->filterByPrimaryKeys($formats->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByFormats() only accepts arguments of type \\Formats or Collection'); } }
/** * @param ChildFormats $formats The ChildFormats object to add. */ protected function doAddFormats(ChildFormats $formats) { $this->collFormatss[] = $formats; $formats->setBooks($this); }
/** * Exclude object from result * * @param ChildFormats $formats Object to remove from the list of results * * @return $this|ChildFormatsQuery The current query, for fluid interface */ public function prune($formats = null) { if ($formats) { $this->addUsingAlias(FormatsTableMap::COL_ID, $formats->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildFormats $formats The ChildFormats object to add. */ protected function doAddFormats(ChildFormats $formats) { $this->collFormatss[] = $formats; $formats->setuserSysRef($this); }
/** * 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); }