CakePHP - HABTM problem - SOLVED

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

CakePHP - HABTM problem - SOLVED

Postby mbang » Wed Dec 29, 2010 10:15 pm

Thanks for a good series regarding CakePHP. I'm reading it with interest and I'm also trying to make my own solutions. I have a problem with the latest tutorial regarding fileshare. When I create a new upload and select a user to share with and save I don't get any error, but there is no data being saved in the joined table. If I edit the upload and select one or more users in the SharedUser list the correct data is being saved in the joined table. Is this by design or is there anything I have missed ?
Last edited by mbang on Thu Dec 30, 2010 9:43 pm, edited 1 time in total.
mbang
 
Posts: 2
Joined: Wed Dec 29, 2010 10:08 pm

SOLVED

Postby mbang » Thu Dec 30, 2010 9:42 pm

I have solved it. The tutorial did not use the SharedUser in the input form and did not send the correct data through the controller.
After fixing that everything works.....
mbang
 
Posts: 2
Joined: Wed Dec 29, 2010 10:08 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests