I want to do something like this
$user->profile->getUrl();
instead of
$user->getProfileUrl();
To return (generate) the correct profile url, I need the id or even more attributes of the actual user model within the profile model. Is this possible already in some way?
This is how I would like to do it:
public function getUrl()
{
return Yii::app()->createUrl('user/profile', array('id' => $this->owner->id));
}