'ID', 'id_subscription' => 'Abonnement', 'id_product' => 'Produit', 'id_rotating' => 'Produit tournant', 'quantity' => 'Quantité', ]; } /* Getters / setters */ public function getRotating(): ?Rotating { return $this->rotatingRelation; } public function setRotating(Rotating $rotating): self { $this->populateFieldObject('id_rotating', 'rotatingRelation', $rotating); return $this; } /* Relations */ public function getRotatingRelation(): ActiveQuery { return $this->hasOne(Rotating::class, ['id' => 'id_rotating']); } public function getProduct() { return $this->hasOne(Product::class, ['id' => 'id_product']); } public function populateProduct(Product $product): void { $this->populateFieldObject('id_product', 'product', $product); } }