/** * 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->aRights) { $this->aRights->removeRRightsForbook($this); } if (null !== $this->aBooks) { $this->aBooks->removeRRightsForbook($this); } $this->_rightid = null; $this->_bookid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildRights $rights Object to remove from the list of results * * @return $this|ChildRightsQuery The current query, for fluid interface */ public function prune($rights = null) { if ($rights) { $this->addUsingAlias(RightsTableMap::COL_ID, $rights->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Rights object * * @param \Rights|ObjectCollection $rights 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 ChildRRightsForformatQuery The current query, for fluid interface */ public function filterByRights($rights, $comparison = null) { if ($rights instanceof \Rights) { return $this->addUsingAlias(RRightsForformatTableMap::COL__RIGHTID, $rights->getId(), $comparison); } elseif ($rights instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RRightsForformatTableMap::COL__RIGHTID, $rights->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRights() only accepts arguments of type \\Rights or Collection'); } }