Skip to content

Commit 419247c

Browse files
authored
Add getId to Offer (#853)
1 parent cf4c38f commit 419247c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

core/getting-started.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ class Offer
138138
* @ORM\ManyToOne(targetEntity="Product", inversedBy="offers")
139139
*/
140140
public $product;
141+
142+
public function getId(): ?int
143+
{
144+
return $this->id;
145+
}
141146
}
142147
```
143148

core/mongodb.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ class Offer
201201
* @ODM\ReferenceOne(targetDocument=Product::class, inversedBy="offers", storeAs="id")
202202
*/
203203
public $product;
204+
205+
public function getId(): ?int
206+
{
207+
return $this->id;
208+
}
204209
}
205210
```
206211

0 commit comments

Comments
 (0)