i have 3 tables

1. users
     fields. id , name


2. projects
    field: id , name

3. projects_users
    field : id , project_id , user_id


when i select multiple users in a single project data are only saved
in project table.
but didnt save in projects_users table

        echo $form->select('User.id',$dev,null, array('multiple'=>
true),true);

i used this to select multiple users to add project...
but data were not saved to projects_users table..


then i tried with the following code but tht also didnt work

echo  $form->input(   'User.0.id',        array('type'=>'hidden',
'value' => '13'));
echo  $form->input(   'User.1.id',        array('type'=>'hidden',
'value' => '14'));

in project controller i used this

$this->Project->create();
if ($this->Project->saveAll($this->data));

please can anyone help me on this issue.....







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to