'ID', 'id_distribution' => 'Distribution', 'id_product' => 'Produit', 'active' => 'Actif', 'quantity_max' => 'Quantité max', ]; } /* * Relations */ public function getProduct() { return $this->hasOne(Product::class, ['id' => 'id_product']); } public function getDistribution() { return $this->hasOne(Distribution::class, ['id' => 'id_distribution']); } }