/** * 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'); } }
/** * @param ChildData $data The ChildData object to add. */ protected function doAddData(ChildData $data) { $this->collDatas[] = $data; $data->setuserSysRef($this); }
/** * @param ChildData $data The ChildData object to add. */ protected function doAddData(ChildData $data) { $this->collDatas[] = $data; $data->setContributions($this); }
/** * 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; }
/** * @param ChildData $data The ChildData object to add. */ protected function doAddData(ChildData $data) { $this->collDatas[] = $data; $data->setTemplates($this); }