/** * @return \yii\db\ActiveQuery */ public function getIdProduct() { return $this->hasOne(Product::className(), ['id_product' => 'id_product']); }
/** * @return \yii\db\ActiveQuery */ public function getIdProducts() { return $this->hasMany(Product::className(), ['id_product' => 'id_product'])->viaTable('product_supplier', ['id_supplier' => 'id_supplier']); }
/** * @return \yii\db\ActiveQuery */ public function getProducts() { return $this->hasMany(Product::className(), ['id_category' => 'id_category']); }
/** * @return \yii\db\ActiveQuery */ public function getIdProducts() { return $this->hasMany(Product::className(), ['id_product' => 'id_product'])->viaTable('transfer_dtl', ['id_transfer' => 'id_transfer']); }
/** * @return \yii\db\ActiveQuery */ public function getProducts() { return $this->hasMany(Product::className(), ['id_group' => 'id_group']); }
/** * @return \yii\db\ActiveQuery */ public function getIdProducts() { return $this->hasMany(Product::className(), ['id_product' => 'id_product'])->viaTable('price', ['id_price_category' => 'id_price_category']); }