public function getProfileImageUrl($width = 0, $height = 0) { if ($this->profile_image_id == 0) { return \URLHelper::asset('img/user.png', 'common'); } if ($width == 0 && $height == 0) { return $this->profileImage->url; } else { return $this->profileImage->url; } }