Example #1
0
 /**
  * Filter the query by a related \InformationAsked object
  *
  * @param \InformationAsked|ObjectCollection $informationAsked the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByInformationAsked($informationAsked, $comparison = null)
 {
     if ($informationAsked instanceof \InformationAsked) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $informationAsked->getUserId(), $comparison);
     } elseif ($informationAsked instanceof ObjectCollection) {
         return $this->useInformationAskedQuery()->filterByPrimaryKeys($informationAsked->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByInformationAsked() only accepts arguments of type \\InformationAsked or Collection');
     }
 }
Example #2
0
 /**
  * Exclude object from result
  *
  * @param   ChildInformationAsked $informationAsked Object to remove from the list of results
  *
  * @return $this|ChildInformationAskedQuery The current query, for fluid interface
  */
 public function prune($informationAsked = null)
 {
     if ($informationAsked) {
         $this->addUsingAlias(InformationAskedTableMap::COL_ID, $informationAsked->getID(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #3
0
 /**
  * @param ChildInformationAsked $informationAsked The ChildInformationAsked object to add.
  */
 protected function doAddInformationAsked(ChildInformationAsked $informationAsked)
 {
     $this->collInformationAskeds[] = $informationAsked;
     $informationAsked->setUser($this);
 }