예제 #1
0
 /**
  * @param ChildUserAttributeValues $userAttributeValues The ChildUserAttributeValues object to add.
  */
 protected function doAddUserAttributeValues(ChildUserAttributeValues $userAttributeValues)
 {
     $this->collUserAttributeValuess[] = $userAttributeValues;
     $userAttributeValues->setUserAttributes($this);
 }
예제 #2
0
 /**
  * Filter the query by a related \UserAttributeValues object
  *
  * @param \UserAttributeValues|ObjectCollection $userAttributeValues the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserAttributesQuery The current query, for fluid interface
  */
 public function filterByUserAttributeValues($userAttributeValues, $comparison = null)
 {
     if ($userAttributeValues instanceof \UserAttributeValues) {
         return $this->addUsingAlias(UserAttributesTableMap::COL_ID, $userAttributeValues->getUserAttributeId(), $comparison);
     } elseif ($userAttributeValues instanceof ObjectCollection) {
         return $this->useUserAttributeValuesQuery()->filterByPrimaryKeys($userAttributeValues->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserAttributeValues() only accepts arguments of type \\UserAttributeValues or Collection');
     }
 }
예제 #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildUserAttributeValues $userAttributeValues Object to remove from the list of results
  *
  * @return $this|ChildUserAttributeValuesQuery The current query, for fluid interface
  */
 public function prune($userAttributeValues = null)
 {
     if ($userAttributeValues) {
         $this->addUsingAlias(UserAttributeValuesTableMap::COL_ID, $userAttributeValues->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }