var_dump($this->user)I can see them, but when I call
var_dump($this->user->sites);it throws an error saying :"ErrorException [ Notice ]: Trying to get property of non-object" Can anyone show me what I'm missing!?
$this->user = Model_Users::find() ->related('sites') ->where('username', '=', \Session::get('username')) ->get(); var_dump($this->user->sites);
It looks like you're new here. If you want to get involved, click one of these buttons!