/** * @return \yii\db\ActiveQuery */ public function getCustomers() { return $this->hasMany(Customer::className(), ['store_id' => 'store_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCustomer() { return $this->hasOne(Customer::className(), ['customer_id' => 'customer_id']); }