Пример #1
0
 /**
  * Filter the query by a related \SpoilerWiki\AssignedRoleGlobal object
  *
  * @param \SpoilerWiki\AssignedRoleGlobal|ObjectCollection $assignedRoleGlobal the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildRoleQuery The current query, for fluid interface
  */
 public function filterByAssignedRoleGlobal($assignedRoleGlobal, $comparison = null)
 {
     if ($assignedRoleGlobal instanceof \SpoilerWiki\AssignedRoleGlobal) {
         return $this->addUsingAlias(RoleTableMap::COL_ID, $assignedRoleGlobal->getUserId(), $comparison);
     } elseif ($assignedRoleGlobal instanceof ObjectCollection) {
         return $this->useAssignedRoleGlobalQuery()->filterByPrimaryKeys($assignedRoleGlobal->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAssignedRoleGlobal() only accepts arguments of type \\SpoilerWiki\\AssignedRoleGlobal or Collection');
     }
 }