protected function doAddReferences(Skill $model, $data) {
		$errors = [];
		foreach ($data as $entry) {
			if (!isset($entry['id'])) {
				$errors[] = 'Missing id for Reference';
			} else {
				$related = ReferenceQuery::create()->findOneById($entry['id']);
				$model->addReference($related);
			}
		}

		if (count($errors) > 0) {
			return new ErrorsException($errors);
		}
	}