public function getHoverImage() { if (!$this->getAttribute('hoverImageId')) { return $this->getRelationValue('basicImage'); } return $this->getRelationValue('hoverImage'); }