namespace app\modules\dashboard\models
;
namespace app\modules\dashboard\models;
use app\modules\dashboard\models\Contact;
class User extends dektrium\user\models\User
{
/**
* @return \yii\db\ActiveQuery
*/
public function getСontact()
{
return $this->hasOne(Contact::className(), ['user_id' => 'id']);
}
}
dektrium\user\models\User
вместо которая в приложении app\modules\dashboard\models\User
...
'user' => [
'class' => 'dektrium\user\Module',
'modelMap' => [
'User' => 'app\models\User',
],
],
...