Re: belongsTo via form

2008-11-29 Thread Sebastian Göttschkes
Hi, I now found a article in the bakery explaining what to do to save 2 models. For anyone facing the same problem, here you go: http://book.cakephp.org/view/75/Saving-Your-Data Sebastian On 28 Nov., 22:16, Sebastian Göttschkes [EMAIL PROTECTED] wrote: Thank you for your reply. I can't get

Re: belongsTo via form

2008-11-28 Thread Sebastian Göttschkes
Thank you for your reply. I can't get it working. Neither the validation nor the adding of a dataset is working. On 26 Nov., 23:35, thatsgreat2345 [EMAIL PROTECTED] wrote: instead of company do Company.name or whatever field you have called to save the name. On Nov 26, 2:18 pm, Sebastian

belongsTo via form

2008-11-26 Thread Sebastian Göttschkes
Hi there, I got a problem I cannot solve using the docs or google. I have a Model User, which contains all users. Every User belongs to a Company, so I added a foreign key company_id to the users table and added a table companies. Everything is working well to this point. Know I want to add

Re: belongsTo via form

2008-11-26 Thread thatsgreat2345
instead of company do Company.name or whatever field you have called to save the name. On Nov 26, 2:18 pm, Sebastian Göttschkes [EMAIL PROTECTED] wrote: Hi there, I got a problem I cannot solve using the docs or google. I have a Model User, which contains all users. Every User belongs to a