I have two entity User and Booking which are related with oneToMany relationship, when a user ake a booking the user id is saved in the user_id column table of booking, I want in my controller to retrieve all the user's booking !
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="bookings")
* @JoinColumn(name="user_id", referencedColumnName="id")…
Top comments (0)