BoostN
Well-known member
I seem to be doing something stupid. I'm extending the XF\Service\User class with my add-on.. I'm just trying to get the value like so:
Is this the improper way to access the user options entity within my extended class? PHPStorm seems to say the object is there... but, I get nothing.
PHP:
<?php
namespace BoostN\SendySync\XF\Service\User;
class Welcome extends XFCP_Welcome
{
public function send(){
$user = $this->user;
$value = $user->Option->receive_admin_email;
//DO SOMETHING
parent::send();
}
}
Is this the improper way to access the user options entity within my extended class? PHPStorm seems to say the object is there... but, I get nothing.