Skip to content

Commit 0e3cff0

Browse files
Update composite-primary-keys.rst (#11919)
Fix examples
1 parent 5c50ed9 commit 0e3cff0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/en/tutorials/composite-primary-keys.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ of products purchased and maybe even the current price.
250250
251251
public function __construct(
252252
#[ManyToOne(targetEntity: Customer::class)]
253-
private Customer $customer,
253+
private Customer $customer
254254
) {
255255
$this->items = new ArrayCollection();
256256
$this->created = new DateTime("now");
@@ -295,6 +295,7 @@ of products purchased and maybe even the current price.
295295
$this->order = $order;
296296
$this->product = $product;
297297
$this->offeredPrice = $product->getCurrentPrice();
298+
$this->amount = $amount;
298299
}
299300
}
300301

0 commit comments

Comments
 (0)