{"action":"closed","issue":{"url":"https://api.github.com/repos/rainlab/builder-plugin/issues/199","repository_url":"https://api.github.com/repos/rainlab/builder-plugin","labels_url":"https://api.github.com/repos/rainlab/builder-plugin/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/rainlab/builder-plugin/issues/199/comments","events_url":"https://api.github.com/repos/rainlab/builder-plugin/issues/199/events","html_url":"https://github.com/rainlab/builder-plugin/issues/199","id":271745105,"number":199,"title":"Use of multiple values for displaycolumns in relations formwidget","user":{"login":"maartenmachiels","id":3584586,"avatar_url":"https://avatars2.githubusercontent.com/u/3584586?v=4","gravatar_id":"","url":"https://api.github.com/users/maartenmachiels","html_url":"https://github.com/maartenmachiels","followers_url":"https://api.github.com/users/maartenmachiels/followers","following_url":"https://api.github.com/users/maartenmachiels/following{/other_user}","gists_url":"https://api.github.com/users/maartenmachiels/gists{/gist_id}","starred_url":"https://api.github.com/users/maartenmachiels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maartenmachiels/subscriptions","organizations_url":"https://api.github.com/users/maartenmachiels/orgs","repos_url":"https://api.github.com/users/maartenmachiels/repos","events_url":"https://api.github.com/users/maartenmachiels/events{/privacy}","received_events_url":"https://api.github.com/users/maartenmachiels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-07T08:23:13Z","updated_at":"2017-11-07T14:41:21Z","closed_at":"2017-11-07T14:41:21Z","author_association":"NONE","body":"Hi, I'm using the builder plugin to create a Booking-plugin in which there is a one-to-one relation. \r\nA booking `belongsTo` one `user ` (Rainlab User plugin) and `belongsTo` one `resource `(custom plugin). \r\n\r\nIn my booking model, I have defined:\r\n\r\n```\r\n    /**\r\n     * Relations\r\n     */\r\n\r\n    public $belongsTo = [\r\n        'resource' => 'Chocolata\\Bookingsystem\\Models\\Resource',\r\n        'user' => 'Rainlab\\User\\Models\\User'\r\n    ];\r\n```\r\n\r\nWith the builder plugin, I can choose which displaycolumn the relation formwidget should use. As for `resource`, I only need to show the title of the resource. As for `user`, I'd like to show **both surname and name**. As far as I can see the builder plugin **only allows me to choose one displaycolumn**, not a concatenation of multiple columns. I've been digging through the documentation but did not find a reference to multiple displaycolumns.\r\n\r\nDo you please know a way to have my user relation formwidget display more than one displaycolumn? I'd like the admin to be able to search the list of users and find the one he's looking for. Thanks.\r\n\r\nReally appreciate October & the builder plugin. Thank you for your continued work on this project.\r\n"}}
{"actor":{"display_login":"LukeTowers"}}