/** * @return \yii\db\ActiveQuery */ public function getStores() { return $this->hasMany(\app\modules\sakila\models\Store::className(), ['manager_staff_id' => 'staff_id']); }
/** * @return \yii\db\ActiveQuery */ public function getStore() { return $this->hasOne(\app\modules\sakila\models\Store::className(), ['store_id' => 'store_id']); }
/** * @return \yii\db\ActiveQuery */ public function getStores() { return $this->hasMany(\app\modules\sakila\models\Store::className(), ['address_id' => 'address_id']); }