'ID', 'id_subscription' => 'Abonnement', 'id_product' => 'Produit', 'quantity' => 'Quantité', ]; } /* * Relations */ public function getProduct() { return $this->hasOne(Product::class, ['id' => 'id_product']); } public function populateProduct(Product $product): void { $this->populateFieldObject('id_product', 'product', $product); } }