I'm trying to wrap my head around an issue.
I have a MySQL database table for "users" that has a field called "addresses". This address field either has the word "all" or it has a comma delimited list of "id's" from the address table.
I'm trying to figure out how to show this list of addresses so that when a user is added, they can select "all" or select multiple entries with their current entries highlighted?
JS File:
{
"label": "Addresses:",
"name": "table_addresses.id",
"type": "select"
}
PHP File:
Field::inst( 'table_users.addresses' )
->options( 'table_addresses', 'id', 'id' )
and
->leftJoin( 'table_addresses', 'table_addresses.id', '=', 'table_users.addresses' )