public function getMSelectedImage() { if (!$this->getAttribute('mSelectedImageId')) { return $this->getMHoverImage(); } return $this->getRelationValue('mSelectedImage'); }