Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStore()
 {
     return $this->hasOne(Store::className(), ['store_id' => 'store_id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStores()
 {
     return $this->hasMany(Store::className(), ['manager_staff_id' => 'staff_id']);
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStores()
 {
     return $this->hasMany(Store::className(), ['address_id' => 'address_id']);
 }