/**
  * 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->aAllIssue) {
         $this->aAllIssue->removeRIssuesAllplugin($this);
     }
     if (null !== $this->aAllPlugin) {
         $this->aAllPlugin->removeRIssuesAllplugin($this);
     }
     $this->_issueid = null;
     $this->_pluginid = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #2
0
 /**
  * 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->removeRRightsForissue($this);
     }
     if (null !== $this->aIssues) {
         $this->aIssues->removeRRightsForissue($this);
     }
     $this->_rightid = null;
     $this->_issueid = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \Issues object
  *
  * @param \Issues|ObjectCollection $issues 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 filterByIssues($issues, $comparison = null)
 {
     if ($issues instanceof \Issues) {
         return $this->addUsingAlias(ContributionsTableMap::COL__FORISSUE, $issues->getId(), $comparison);
     } elseif ($issues instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContributionsTableMap::COL__FORISSUE, $issues->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByIssues() only accepts arguments of type \\Issues or Collection');
     }
 }
Example #4
0
 /**
  * Filter the query by a related \Issues object
  *
  * @param \Issues|ObjectCollection $issues 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 filterByIssues($issues, $comparison = null)
 {
     if ($issues instanceof \Issues) {
         return $this->addUsingAlias(BooksTableMap::COL_ID, $issues->getForbook(), $comparison);
     } elseif ($issues instanceof ObjectCollection) {
         return $this->useIssuesQuery()->filterByPrimaryKeys($issues->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByIssues() only accepts arguments of type \\Issues or Collection');
     }
 }
Example #5
0
 /**
  * Exclude object from result
  *
  * @param   ChildIssues $issues Object to remove from the list of results
  *
  * @return $this|ChildIssuesQuery The current query, for fluid interface
  */
 public function prune($issues = null)
 {
     if ($issues) {
         $this->addUsingAlias(IssuesTableMap::COL_ID, $issues->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #6
0
 /**
  * @param ChildIssues $issues The ChildIssues object to add.
  */
 protected function doAddIssues(ChildIssues $issues)
 {
     $this->collIssuess[] = $issues;
     $issues->setBooks($this);
 }
Example #7
0
 /**
  * @param ChildIssues $issues The ChildIssues object to add.
  */
 protected function doAddIssues(ChildIssues $issues)
 {
     $this->collIssuess[] = $issues;
     $issues->setuserSysRef($this);
 }
Example #8
0
 /**
  * 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);
 }