Skip to content

Commit

Permalink
Merge pull request #418 from AOEpeople/bugfix/error-create-week-with-…
Browse files Browse the repository at this point in the history
…event

add perist to eventParticipation.day and day.week
  • Loading branch information
hacksch authored Feb 6, 2024
2 parents 8b2fe72 + ef9ed65 commit 0d41745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mealz/MealBundle/Entity/Day.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Day extends AbstractMessage
private DateTime $dateTime;

/**
* @ORM\ManyToOne(targetEntity="Week", inversedBy="days")
* @ORM\ManyToOne(targetEntity="Week", inversedBy="days", cascade={"persist"})
* @ORM\JoinColumn(name="week_id", referencedColumnName="id")
*/
private Week $week;
Expand Down
2 changes: 1 addition & 1 deletion src/Mealz/MealBundle/Entity/EventParticipation.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EventParticipation
private ?int $id = null;

/**
* @ORM\OneToOne(targetEntity="Day", inversedBy="event")
* @ORM\OneToOne(targetEntity="Day", inversedBy="event", cascade={"persist"})
* @ORM\JoinColumn(name="day", referencedColumnName="id")
*/
private Day $day;
Expand Down

0 comments on commit 0d41745

Please sign in to comment.