/**
  * @return \yii\db\ActiveQuery
  */
 public function getStore()
 {
     return $this->hasOne(Store::className(), ['id' => 'store_id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStores()
 {
     return $this->hasMany(Store::className(), ['id' => 'store_id'])->viaTable('{{%dkh_image_store}}', ['image_id' => 'id']);
 }