/** * @inheritdoc */ public function attributeLabels() { if (!$this->_attributeLabels) { foreach ($this->relations as $model) { $this->_attributeLabels = ArrayHelper::merge($this->_attributeLabels, $model->attributeLabels()); } $this->_attributeLabels = ArrayHelper::merge($this->_attributeLabels, $this->model->attributeLabels()); } return $this->_attributeLabels; }