Just a quick question before I dig deeper into this. If setting it up the way you have described below:
User wants to edit/update their selections so the form gets rendered with a checkbox for all available options and the additional year field. when a user selects say 5 options and enters in the 5 input fields 5 records are saved to the ProfileSkill db. User goes back and chooses to not select 1 of the options originally selected, unlike the normal HABTM update where it deletes all records and then saves them with this set up I have to do the delete / updating of records myself correct? If so is it bet to do it the same way HABTM would do it delete all the user records and then save the new info? Thanks again Dave -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of AD7six Sent: December-22-09 5:42 AM To: CakePHP Subject: Re: 3 Days and not 1 person has any idea? On 21 dic, 22:05, "Dave" <[email protected]> wrote: > Thanks John, > > That’s correct what I am trying to do as you stated. > > HABTM Structure > Profile > id > > Skill > id > name > > profile_skill > profile_id > skill_id > year <- this is my new aded field > IMO your whole problem stems from trying to refer to a model as a join table. When a join table has more than 2 fields - make it a model. If you give profile_skill a primary key, create a model for it, define Profile hasMany ProfileSkill etc. you've find your difficulties pretty much dissolve. hth, AD Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group cake-php+at http://groups.google.com/group/cake-php?hl=en No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.717 / Virus Database: 270.14.114/2575 - Release Date: 12/21/09 15:43:00 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
