Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormMapper Relationship combine fields on display #36

Open
crofton77 opened this issue Sep 4, 2014 · 0 comments
Open

FormMapper Relationship combine fields on display #36

crofton77 opened this issue Sep 4, 2014 · 0 comments

Comments

@crofton77
Copy link

I would like to display the first and last name of the users in the related field.

Currently I can only pass a string to display a single field

$mapper->belongsTo('owner')->display('first_name');

A example of a way to do this would be to pass an array of fields and a string to join the fields

$mapper->belongsTo('owner')->display(array('first_name','last_name'),' ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant