public function updateById($id, array $newAttributes)
    {
        $model = $this->getById($id);
        $results = $model->update($newAttributes);

        if(!$results){
            throw new UpdateFailedRepositoryException();
        }

        return $model;
    }