/** * @return \yii\db\ActiveQuery */ public function getCarts() { return $this->hasMany(Cart::className(), ['item_id' => 'item_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCarts() { return $this->hasMany(Cart::className(), ['customer_user_name' => 'customer_user_name']); }