コード例 #1
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->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);
 }
コード例 #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);
 }
コード例 #3
0
 /**
  * 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');
     }
 }
コード例 #4
0
ファイル: BooksQuery.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * 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');
     }
 }
コード例 #5
0
ファイル: IssuesQuery.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * 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;
 }
コード例 #6
0
ファイル: Books.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * @param ChildIssues $issues The ChildIssues object to add.
  */
 protected function doAddIssues(ChildIssues $issues)
 {
     $this->collIssuess[] = $issues;
     $issues->setBooks($this);
 }
コード例 #7
0
ファイル: Users.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * @param ChildIssues $issues The ChildIssues object to add.
  */
 protected function doAddIssues(ChildIssues $issues)
 {
     $this->collIssuess[] = $issues;
     $issues->setuserSysRef($this);
 }
コード例 #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);
 }