/** * Filter the query by a related \ORM\NotificationOption object * * @param \ORM\NotificationOption|ObjectCollection $notificationOption 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 filterByNotificationOption($notificationOption, $comparison = null) { if ($notificationOption instanceof \ORM\NotificationOption) { return $this->addUsingAlias(RoleTableMap::COL_ID, $notificationOption->getRoleId(), $comparison); } elseif ($notificationOption instanceof ObjectCollection) { return $this->useNotificationOptionQuery()->filterByPrimaryKeys($notificationOption->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByNotificationOption() only accepts arguments of type \\ORM\\NotificationOption or Collection'); } }