Re: HABTM problem for help

2011-03-06 Thread Ekin Han
Hi Stephen, Thank you very much for your kindly help. 2011/3/5 Stephen > Hi There > > From the cookbook: > >> *With HABTM, you need to set the ID of the associated model in your data >> array. We'll build a form that creates a new tag and associates it on the >> fly with some recipe.* [1] >>

Re: HABTM problem for help

2011-03-05 Thread Stephen
Hi There >From the cookbook: > *With HABTM, you need to set the ID of the associated model in your data > array. We'll build a form that creates a new tag and associates it on the > fly with some recipe.* [1] > Try doing User.id not User.username [1] http://book.cakephp.org/view/1044/hasAndBelo

HABTM problem for help

2011-03-05 Thread Ekin Han
Hi all, I have such a problem about HABTM. I have 3 tables, users table, bugs table and bugs_users table. The relation ship between users and bugs are just like below: users HABTM bugs bugs HABTM users Now I write a method in Bugs controller which name add() just like below function add(){ i