Exemplo n.º 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildContributions $contributions Object to remove from the list of results
  *
  * @return $this|ChildContributionsQuery The current query, for fluid interface
  */
 public function prune($contributions = null)
 {
     if ($contributions) {
         $this->addUsingAlias(ContributionsTableMap::COL_ID, $contributions->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 /**
  * @param ChildContributions $contributions The ChildContributions object to add.
  */
 protected function doAddContributions(ChildContributions $contributions)
 {
     $this->collContributionss[] = $contributions;
     $contributions->setTemplatenames($this);
 }
Exemplo n.º 4
0
 /**
  * Filter the query by a related \Contributions object
  *
  * @param \Contributions|ObjectCollection $contributions the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildIssuesQuery The current query, for fluid interface
  */
 public function filterByContributions($contributions, $comparison = null)
 {
     if ($contributions instanceof \Contributions) {
         return $this->addUsingAlias(IssuesTableMap::COL_ID, $contributions->getForissue(), $comparison);
     } elseif ($contributions instanceof ObjectCollection) {
         return $this->useContributionsQuery()->filterByPrimaryKeys($contributions->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByContributions() only accepts arguments of type \\Contributions or Collection');
     }
 }
Exemplo n.º 5
0
 /**
  * @param ChildContributions $contributions The ChildContributions object to add.
  */
 protected function doAddContributions(ChildContributions $contributions)
 {
     $this->collContributionss[] = $contributions;
     $contributions->setFormats($this);
 }
Exemplo n.º 6
0
 /**
  * @param ChildContributions $contributions The ChildContributions object to add.
  */
 protected function doAddContributions(ChildContributions $contributions)
 {
     $this->collContributionss[] = $contributions;
     $contributions->setuserSysRef($this);
 }
Exemplo n.º 7
0
 /**
  * Filter the query by a related \Contributions object
  *
  * @param \Contributions|ObjectCollection $contributions 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 filterByContributions($contributions, $comparison = null)
 {
     if ($contributions instanceof \Contributions) {
         return $this->addUsingAlias(DataTableMap::COL__FORCONTRIBUTION, $contributions->getId(), $comparison);
     } elseif ($contributions instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(DataTableMap::COL__FORCONTRIBUTION, $contributions->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByContributions() only accepts arguments of type \\Contributions or Collection');
     }
 }