Found the problem...
using:
$html->hidden('Profile/Profile', array('value' =>
$this->controller->Session->read('p.id')));
doesnt work for me. I had to manually insert the profile id in the
create method of my projects controller:
$this->data['Profile']['Profile']['id'] = $this->Session->read('p.
Seems to work when data[Profile][Profile] is not in a hidden field...
Strange
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsub
Hi,
I have 3 tables: profiles, projects and profiles_projects
I have var $hasAndBelongsToMany = 'Project' on profile.php and var
$hasAndBelongsToMany = 'Profile' on my project.php file. I can
retrieve/query fine, but when saving, I get this error:
Warning: Invalid argument supplied for foreach(