/** * 获取菜单url的关联数据 * * @return \yii\db\ActiveQuery */ public function getMenuUrl() { return $this->hasOne(DpAdminMenuUrl::className(), ['url_id' => 'url_id']); }