repository = $repository; } /** * @param $stringIdentifier location_remote_id: * @return string Location id * @throws \Exception */ public function getReferenceValue($stringIdentifier) { $ref = $this->getReferenceIdentifierByPrefix($stringIdentifier); switch($ref['prefix']) { // deprecated tag: 'location:' case 'location:': return $this->repository->getLocationService()->loadLocationByRemoteId($ref['identifier'])->id; //case 'location_remote_id:': // return $this->repository->getLocationService()->loadLocationByRemoteId($ref['identifier'])->id; } } }