示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenu()
 {
     return $this->hasOne(Menu::className(), ['id' => 'menu_id']);
 }
示例#2
0
文件: Order.php 项目: verget/catering
 public function getOrderMenu()
 {
     return $this->hasOne(Menu::className(), ['menu_id' => 'order_menu']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenus()
 {
     return $this->hasMany(\app\models\Menu::className(), ['parent_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenus()
 {
     return $this->hasMany(Menu::className(), ['plan_id' => 'id']);
 }