eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadPoliciesByUserId PHP Method

loadPoliciesByUserId() public method

Returns the user policies associated with the user.
public loadPoliciesByUserId ( mixed $userId ) : UserPolicy[]
$userId mixed
return UserPolicy[]
    public function loadPoliciesByUserId($userId)
    {
        try {
            return $this->innerGateway->loadPoliciesByUserId($userId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }