Update ReferenceRepository.php