/**
  * 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->aFieldpostprocessor) {
         $this->aFieldpostprocessor->removeRFieldpostprocessorForfield($this);
     }
     if (null !== $this->aTemplates) {
         $this->aTemplates->removeRFieldpostprocessorForfield($this);
     }
     $this->_postprocessorid = null;
     $this->_templateid = 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
 /**
  * @param ChildTemplates $templates The ChildTemplates object to add.
  */
 protected function doAddTemplates(ChildTemplates $templates)
 {
     $this->collTemplatess[] = $templates;
     $templates->setTemplatenames($this);
 }
示例#4
0
 /**
  * Exclude object from result
  *
  * @param   ChildTemplates $templates Object to remove from the list of results
  *
  * @return $this|ChildTemplatesQuery The current query, for fluid interface
  */
 public function prune($templates = null)
 {
     if ($templates) {
         $this->addUsingAlias(TemplatesTableMap::COL_ID, $templates->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
示例#5
0
 /**
  * Filter the query by a related \Templates object
  *
  * @param \Templates|ObjectCollection $templates 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 ChildDataQuery The current query, for fluid interface
  */
 public function filterByTemplates($templates, $comparison = null)
 {
     if ($templates instanceof \Templates) {
         return $this->addUsingAlias(DataTableMap::COL__FORTEMPLATEFIELD, $templates->getId(), $comparison);
     } elseif ($templates instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(DataTableMap::COL__FORTEMPLATEFIELD, $templates->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByTemplates() only accepts arguments of type \\Templates or Collection');
     }
 }
 /**
  * Filter the query by a related \Templates object
  *
  * @param \Templates|ObjectCollection $templates the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildTemplatenamesQuery The current query, for fluid interface
  */
 public function filterByTemplates($templates, $comparison = null)
 {
     if ($templates instanceof \Templates) {
         return $this->addUsingAlias(TemplatenamesTableMap::COL_ID, $templates->getFortemplate(), $comparison);
     } elseif ($templates instanceof ObjectCollection) {
         return $this->useTemplatesQuery()->filterByPrimaryKeys($templates->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTemplates() only accepts arguments of type \\Templates or Collection');
     }
 }