示例#1
0
文件: Order.php 项目: kotmonstr/gitar
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItem()
 {
     return $this->hasOne(Items::className(), ['id' => 'item_id']);
 }
示例#2
0
文件: Brend.php 项目: kotmonstr/gitar
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItems()
 {
     return $this->hasMany(Items::className(), ['brend_id' => 'id']);
 }