/** * @return \yii\db\ActiveQuery */ public function getData() { return $this->hasMany(PageData::className(), ['id_page' => 'id']); }