Esempio n. 1
0
 /**
  * Filter the query by a related \Models\PackPermission object
  *
  * @param \Models\PackPermission|ObjectCollection $packPermission 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 filterByPackPermission($packPermission, $comparison = null)
 {
     if ($packPermission instanceof \Models\PackPermission) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $packPermission->getUserId(), $comparison);
     } elseif ($packPermission instanceof ObjectCollection) {
         return $this->usePackPermissionQuery()->filterByPrimaryKeys($packPermission->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPackPermission() only accepts arguments of type \\Models\\PackPermission or Collection');
     }
 }
Esempio n. 2
0
 /**
  * @param ChildPackPermission $packPermission The ChildPackPermission object to add.
  */
 protected function doAddPackPermission(ChildPackPermission $packPermission)
 {
     $this->collPackPermissions[] = $packPermission;
     $packPermission->setGroup($this);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildPackPermission $packPermission Object to remove from the list of results
  *
  * @return $this|ChildPackPermissionQuery The current query, for fluid interface
  */
 public function prune($packPermission = null)
 {
     if ($packPermission) {
         $this->addUsingAlias(PackPermissionTableMap::COL_ID, $packPermission->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }