Skip to content

Commit a403ff5

Browse files
authored
Merge pull request #757 from meyerbaptiste/testing
Update the `Testing and Specifying the API` page
2 parents 056c448 + b739abf commit a403ff5

File tree

2 files changed

+248
-166
lines changed

2 files changed

+248
-166
lines changed

distribution/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class Book
267267
/**
268268
* @var Review[] Available reviews for this book.
269269
*
270-
* @ORM\OneToMany(targetEntity="Review", mappedBy="book")
270+
* @ORM\OneToMany(targetEntity="Review", mappedBy="book", cascade={"persist", "remove"})
271271
*/
272272
public $reviews;
273273

@@ -331,7 +331,7 @@ class Review
331331
/**
332332
* @var \DateTimeInterface The date of publication of this review.
333333
*
334-
* @ORM\Column(type="datetime_immutable")
334+
* @ORM\Column(type="datetime")
335335
*/
336336
public $publicationDate;
337337

0 commit comments

Comments
 (0)