I am trying to display an activeListBox in services' _form.php view where it shows the selected timetables.
I have the following:
services model (relations):
When I access _form.php via /create it correctly generates the following code:
I have added an afterSave function to my Services model which correctly inserts the appropriate values into the database.
The problem occurs when I try to then update the service (via _form.php) where data exists in the database for that service. I get the following error:
From what I can tell, it is trying to compare the Timetables object to the value (int) that exists in the database. I can't work out how to get it to compare timetables->id to the value.
Where am I going wrong?