One to one and one to many
Hello,
I currently have
But when I for example create an active meeting, the
event_id
stays null. Of course, I don't assign it to the active_meeting
but idk how to do.
Before this, I just had an event
field with Event?
type and events
with Event[]
but a meeting can only have 1 event, not an array and both event
and old_event
refer to the same event.
Does someone know how to do this properly?1 Reply
So basically what I want to achieve is something like (or even cleaner without having to use old_event) but this gives the following error in the image
![](https://cdn.answeroverflow.com/1117561388571840523/image.png)