original_string: public function removeObjects($id, $data) {
  		// find
  		$model = $this->get($id);
  
  		if ($model === null) {
  			return new NotFound(['message' => 'Sport not found.']);
  		}
  
  		// pass remove to internal logic
  		try {
  			$this->doRemoveObjects($model, $data);
  		} catch (ErrorsException $e) {
  			return new NotValid(['errors' => $e->getErrors()]);
  		}
  
  		// save and dispatch events
  		$this->dispatch(SportEvent::PRE_OBJECTS_REMOVE, $model, $data);
  		$this->dispatch(SportEvent::PRE_SAVE, $model, $data);
  		$rows = $model->save();
  		$this->dispatch(SportEvent::POST_OBJECTS_REMOVE, $model, $data);
  		$this->dispatch(SportEvent::POST_SAVE, $model, $data);
  
  		if ($rows > 0) {
  			return Updated(['model' => $model]);
  		}
  
  		return NotUpdated(['model' => $model]);
  	}
code: public function removeObjects($id, $data) {
  		// find
  		$model = $this->get($id);
  
  		if ($model === null) {
  			return new NotFound(['message' => 'Sport not found.']);
  		}
  
  		// pass remove to internal logic
  		try {
  			$this->doRemoveObjects($model, $data);
  		} catch (ErrorsException $e) {
  			return new NotValid(['errors' => $e->getErrors()]);
  		}
  
  		// save and dispatch events
  		$this->dispatch(SportEvent::PRE_OBJECTS_REMOVE, $model, $data);
  		$this->dispatch(SportEvent::PRE_SAVE, $model, $data);
  		$rows = $model->save();
  		$this->dispatch(SportEvent::POST_OBJECTS_REMOVE, $model, $data);
  		$this->dispatch(SportEvent::POST_SAVE, $model, $data);
  
  		if ($rows > 0) {
  			return Updated(['model' => $model]);
  		}
  
  		return NotUpdated(['model' => $model]);
  	}
code_tokens: public function removeObjects ( $ id , $ data ) { // find $ model = $ this -> get ( $ id ) ; if ( $ model === null ) { return new NotFound ( [ 'message' => 'Sport not found.' ] ) ; } // pass remove to internal logic try { $ this -> doRemoveObjects ( $ model , $ data ) ; } catch ( ErrorsException $ e ) { return new NotValid ( [ 'errors' => $ e -> getErrors ( ) ] ) ; } // save and dispatch events $ this -> dispatch ( SportEvent :: PRE_OBJECTS_REMOVE , $ model , $ data ) ; $ this -> dispatch ( SportEvent :: PRE_SAVE , $ model , $ data ) ; $ rows = $ model -> save ( ) ; $ this -> dispatch ( SportEvent :: POST_OBJECTS_REMOVE , $ model , $ data ) ; $ this -> dispatch ( SportEvent :: POST_SAVE , $ model , $ data ) ; if ( $ rows > 0 ) { return Updated ( [ 'model' => $ model ] ) ; } return NotUpdated ( [ 'model' => $ model ] ) ; }
docstring: Removes Objects from Sport
  
  @param mixed $id
  @param mixed $data
  @return PayloadInterface
docstring_tokens: Removes Objects from Sport