/** * 关联二级导航 */ public function getMbar() { return $this->hasMany(AgMnavbar::className(), ['pid' => 'id']); }