I am using set_relation to fetch a primary key from a table entitled 'tree'.
The dropdown displays the 'id' and 'title' information exactly as I was expecting.
When I select an entry from the dropdown the correct data is shown in the field.
When I save the entry the wrong data is sent to the database. It is always the same id number no matter which entry I choose in the dropdown.
PHP code:
$this->grocery_crud->set_relation('linked','tree','{id} ( {title} )');