Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdProduct()
 {
     return $this->hasOne(Product::className(), ['id_product' => 'id_product']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdProducts()
 {
     return $this->hasMany(Product::className(), ['id_product' => 'id_product'])->viaTable('product_supplier', ['id_supplier' => 'id_supplier']);
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProducts()
 {
     return $this->hasMany(Product::className(), ['id_category' => 'id_category']);
 }
Example #4
0
 /**
  * @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']);
 }