How can I customise the select list on a Relationship Manager's modal form?
I've tried so many ways to do what seems a really simple task:
Given a belongsToMany relationship between Training and Trainee models, I am using a TraineeRelationManager to attach Trainees to the Training.
This works fine by default but we could have numerous trainees called "John Smith" and the default relationship manager gives me now way to tell which is which.
Therefore I am trying to include the name of each Trainee's Organisation which is a belongsTo relationship on the Trainee.
i.e. Instead of a searchable select of potentially thousands of trainees just returning the "$trainee->name" , I need a string such as "$trainee->name ( $trainee->organisation )".
How can this be done on a Relation Manager please?
Given a belongsToMany relationship between Training and Trainee models, I am using a TraineeRelationManager to attach Trainees to the Training.
This works fine by default but we could have numerous trainees called "John Smith" and the default relationship manager gives me now way to tell which is which.
Therefore I am trying to include the name of each Trainee's Organisation which is a belongsTo relationship on the Trainee.
i.e. Instead of a searchable select of potentially thousands of trainees just returning the "$trainee->name" , I need a string such as "$trainee->name ( $trainee->organisation )".
How can this be done on a Relation Manager please?