Relation manager form get current resource id

How can I use the id of the current resource record in a select relationship from the relationship manager form?
I test this but not working:

modifyQueryUsing: fn (Builder $query, Edition $record) => $query->where('edition_id', $record->id)
Was this page helpful?