/** * 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); }
/** * 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->removeRTemplatenamesForbook($this); } if (null !== $this->aBooks) { $this->aBooks->removeRTemplatenamesForbook($this); } $this->_templateid = null; $this->_bookid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildBooks $books Object to remove from the list of results * * @return $this|ChildBooksQuery The current query, for fluid interface */ public function prune($books = null) { if ($books) { $this->addUsingAlias(BooksTableMap::COL_ID, $books->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Books object * * @param \Books|ObjectCollection $books 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 ChildRBatchForbookQuery The current query, for fluid interface */ public function filterByBooks($books, $comparison = null) { if ($books instanceof \Books) { return $this->addUsingAlias(RBatchForbookTableMap::COL__BOOKID, $books->getId(), $comparison); } elseif ($books instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RBatchForbookTableMap::COL__BOOKID, $books->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByBooks() only accepts arguments of type \\Books 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->removeFormats($this); } if (null !== $this->aBooks) { $this->aBooks->removeFormats($this); } $this->id = null; $this->_name = null; $this->_forbook = null; $this->__user__ = null; $this->__config__ = null; $this->__split__ = null; $this->__sort__ = null; $this->__parentnode__ = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * @param ChildBooks $books The ChildBooks object to add. */ protected function doAddBooks(ChildBooks $books) { $this->collBookss[] = $books; $books->setuserSysRef($this); }
/** * Filter the query by a related \Books object * * @param \Books|ObjectCollection $books the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildUsersQuery The current query, for fluid interface */ public function filterByBooks($books, $comparison = null) { if ($books instanceof \Books) { return $this->addUsingAlias(UsersTableMap::COL_ID, $books->getUserSys(), $comparison); } elseif ($books instanceof ObjectCollection) { return $this->useBooksQuery()->filterByPrimaryKeys($books->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByBooks() only accepts arguments of type \\Books or Collection'); } }