/** * 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 ChildUserQuery The current query, for fluid interface */ public function filterByAssignedRoleGlobalRelatedByAssignedBy($assignedRoleGlobal, $comparison = null) { if ($assignedRoleGlobal instanceof \SpoilerWiki\AssignedRoleGlobal) { return $this->addUsingAlias(UserTableMap::COL_ID, $assignedRoleGlobal->getAssignedBy(), $comparison); } elseif ($assignedRoleGlobal instanceof ObjectCollection) { return $this->useAssignedRoleGlobalRelatedByAssignedByQuery()->filterByPrimaryKeys($assignedRoleGlobal->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByAssignedRoleGlobalRelatedByAssignedBy() only accepts arguments of type \\SpoilerWiki\\AssignedRoleGlobal or Collection'); } }