public function isIgnoredBy($userId)
    {
        if ((new Query)->select('id')->from('{{%podium_user_ignore}}')->where([
                'user_id' => $userId,
                'ignored_id' => $this->id
            ])->exists()) {
            return true;
        }
        return false;
    }
public function isIgnoredBy($userId)
    {
        if ((new Query)->select('id')->from('{{%podium_user_ignore}}')->where([
                'user_id' => $userId,
                'ignored_id' => $this->id
            ])->exists()) {
            return true;
        }
        return false;
    }
public function isIgnoredBy ( $ userId ) { if ( ( new Query ) -> select ( 'id' ) -> from ( '{{%podium_user_ignore}}' ) -> where ( [ 'user_id' => $ userId , 'ignored_id' => $ this -> id ] ) -> exists ( ) ) { return true ; } return false ; }
Finds out if user is ignored by another.
@param int $userId user ID
@return bool
Finds out if user is ignored by another .