Пример #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->aRights) {
         $this->aRights->removeRRightsForuser($this);
     }
     if (null !== $this->aUsers) {
         $this->aUsers->removeRRightsForuser($this);
     }
     $this->_rightid = null;
     $this->_userid = 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->auserSysRef) {
         $this->auserSysRef->removeData($this);
     }
     if (null !== $this->aContributions) {
         $this->aContributions->removeData($this);
     }
     if (null !== $this->aTemplates) {
         $this->aTemplates->removeData($this);
     }
     $this->id = null;
     $this->_forcontribution = null;
     $this->_fortemplatefield = null;
     $this->_content = null;
     $this->_isjson = null;
     $this->__user__ = null;
     $this->__config__ = null;
     $this->__split__ = null;
     $this->__parentnode__ = null;
     $this->__sort__ = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Пример #3
0
 /**
  * Filter the query by a related \Users object
  *
  * @param \Users|ObjectCollection $users 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 filterByuserSysRef($users, $comparison = null)
 {
     if ($users instanceof \Users) {
         return $this->addUsingAlias(ContributionsTableMap::COL___USER__, $users->getId(), $comparison);
     } elseif ($users instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContributionsTableMap::COL___USER__, $users->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByuserSysRef() only accepts arguments of type \\Users or Collection');
     }
 }
Пример #4
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->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);
 }
Пример #5
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);
 }
Пример #6
0
 /**
  * Exclude object from result
  *
  * @param   ChildUsers $users Object to remove from the list of results
  *
  * @return $this|ChildUsersQuery The current query, for fluid interface
  */
 public function prune($users = null)
 {
     if ($users) {
         $this->addUsingAlias(UsersTableMap::COL_ID, $users->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }