where('id', $scope) ->get(); if (count($result) === 0) { return null; } return (new ScopeEntity($this->server))->hydrate([ 'id' => $result[0]['id'], 'description' => $result[0]['description'], ]); } }