Esempio n. 1
0
 /**
  * @param ChildUserAttributeValue $userAttributeValue The ChildUserAttributeValue object to add.
  */
 protected function doAddUserAttributeValue(ChildUserAttributeValue $userAttributeValue)
 {
     $this->collUserAttributeValues[] = $userAttributeValue;
     $userAttributeValue->setUserAttribute($this);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildUserAttributeValue $userAttributeValue Object to remove from the list of results
  *
  * @return $this|ChildUserAttributeValueQuery The current query, for fluid interface
  */
 public function prune($userAttributeValue = null)
 {
     if ($userAttributeValue) {
         $this->addUsingAlias(UserAttributeValueTableMap::COL_ID, $userAttributeValue->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 3
0
 /**
  * Filter the query by a related \UserAttributeValue object
  *
  * @param \UserAttributeValue|ObjectCollection $userAttributeValue 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 filterByUserAttributeValue($userAttributeValue, $comparison = null)
 {
     if ($userAttributeValue instanceof \UserAttributeValue) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $userAttributeValue->getUserId(), $comparison);
     } elseif ($userAttributeValue instanceof ObjectCollection) {
         return $this->useUserAttributeValueQuery()->filterByPrimaryKeys($userAttributeValue->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserAttributeValue() only accepts arguments of type \\UserAttributeValue or Collection');
     }
 }