public function filterByRolePermission($rolePermission, $comparison = null)
    {
        if ($rolePermission instanceof \Alchemy\Component\Cerberus\Model\RolePermission) {
            return $this
                ->addUsingAlias(PermissionTableMap::COL_ID, $rolePermission->getPermissionId(), $comparison);
        } elseif ($rolePermission instanceof ObjectCollection) {
            return $this
                ->useRolePermissionQuery()
                ->filterByPrimaryKeys($rolePermission->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByRolePermission() only accepts arguments of type \Alchemy\Component\Cerberus\Model\RolePermission or Collection');
        }
    }