Skip to content

Commit

Permalink
add perist to eventParticipation.day and day.week
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Tepper committed Feb 6, 2024
1 parent 8b2fe72 commit ef9ed65
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 ef9ed65

Please sign in to comment.