Exemplo n.º 1
0
 /**
  * Filter the query by a related \Data object
  *
  * @param \Data|ObjectCollection $data the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildContributionsQuery The current query, for fluid interface
  */
 public function filterByData($data, $comparison = null)
 {
     if ($data instanceof \Data) {
         return $this->addUsingAlias(ContributionsTableMap::COL_ID, $data->getForcontribution(), $comparison);
     } elseif ($data instanceof ObjectCollection) {
         return $this->useDataQuery()->filterByPrimaryKeys($data->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByData() only accepts arguments of type \\Data or Collection');
     }
 }
Exemplo n.º 2
0
 /**
  * @param ChildData $data The ChildData object to add.
  */
 protected function doAddData(ChildData $data)
 {
     $this->collDatas[] = $data;
     $data->setuserSysRef($this);
 }
Exemplo n.º 3
0
 /**
  * @param ChildData $data The ChildData object to add.
  */
 protected function doAddData(ChildData $data)
 {
     $this->collDatas[] = $data;
     $data->setContributions($this);
 }
Exemplo n.º 4
0
 /**
  * Exclude object from result
  *
  * @param   ChildData $data Object to remove from the list of results
  *
  * @return $this|ChildDataQuery The current query, for fluid interface
  */
 public function prune($data = null)
 {
     if ($data) {
         $this->addUsingAlias(DataTableMap::COL_ID, $data->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemplo n.º 5
0
 /**
  * @param ChildData $data The ChildData object to add.
  */
 protected function doAddData(ChildData $data)
 {
     $this->collDatas[] = $data;
     $data->setTemplates($this);
 }