public function attributeLabels() { $labels = parent::attributeLabels(); $labels['user.name'] = 'Имя пользователя'; return $labels; }