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