original_string: protected function doRemoveSkills(Group $model, $data) {
  		$errors = [];
  		foreach ($data as $entry) {
  			if (!isset($entry['id'])) {
  				$errors[] = 'Missing id for Skill';
  			} else {
  				$related = SkillQuery::create()->findOneById($entry['id']);
  				$model->removeSkill($related);
  			}
  		}
  
  		if (count($errors) > 0) {
  			return new ErrorsException($errors);
  		}
  	}
code: protected function doRemoveSkills(Group $model, $data) {
  		$errors = [];
  		foreach ($data as $entry) {
  			if (!isset($entry['id'])) {
  				$errors[] = 'Missing id for Skill';
  			} else {
  				$related = SkillQuery::create()->findOneById($entry['id']);
  				$model->removeSkill($related);
  			}
  		}
  
  		if (count($errors) > 0) {
  			return new ErrorsException($errors);
  		}
  	}
code_tokens: protected function doRemoveSkills ( Group $ model , $ data ) { $ errors = [ ] ; foreach ( $ data as $ entry ) { if ( ! isset ( $ entry [ 'id' ] ) ) { $ errors [ ] = 'Missing id for Skill' ; } else { $ related = SkillQuery :: create ( ) -> findOneById ( $ entry [ 'id' ] ) ; $ model -> removeSkill ( $ related ) ; } } if ( count ( $ errors ) > 0 ) { return new ErrorsException ( $ errors ) ; } }
docstring: Interal mechanism to remove Skills from Group
  
  @param Group $model
  @param mixed $data
docstring_tokens: Interal mechanism to remove Skills from Group