public function getCacheKey() { if (null !== $this->getId()) { return (string) $this->getId(); } return $this->getUrn(); }