Hi,
I have set up a class which:
# deals with 2 models : A and B, A has_many B, and B has_one A
# extends ModelAdmin
When I do a dev/buil, all things look good.
I have a gridfield for A, a Tab for B.
When I go in Pane B (page under Tab B) and when I click on "Add B" for adding a new object, then I have the good attributes of my B model
BUT beacuse of the has_one relationship that B has with A I get a DropDonwList in which SilverStripe gathers the A existing model with their ID displayed.
I would like to get the names of the A instances instead of the Id but I'm unaware how to achieve this.
One can't add a B object related to a A already existing object by selecting its Id number. Would be great to select the name of the A instance.
Do someone know how to achieve this ?
Thanks