Re: How can I add to one table while I'm adding to another

2010-12-23 Thread georgeman
If I have two possible solutions, one solution requires me to go through some code line by line and figure out what is happening, and it will take longer because the comments don't say much, and the other solution is a plugin that also needs some modification but it comes with a wiki, detailed and

Re: How can I add to one table while I'm adding to another

2010-12-22 Thread Amit Badkas
Hi, The link given by me was not a broken one as I am still able to access that. Also I told you to refer the behavior and it doesn't have cleanUpFields() anywhere, anyhow I didn't think that the behavior provides complicated solution. I also mentioned 'this is a too old article and some code in i

Re: How can I add to one table while I'm adding to another

2010-12-22 Thread georgeman
Thanks for the tips. I don't think SaveAll is the solution I am looking for. What I want to do is enter a list of tags separated by commas then save them correctly in the tags table and posts_tags table. The 'simple tagging' article seems to be geared towards this but the solution offered is SO

Re: How can I add to one table while I'm adding to another

2010-12-22 Thread georgeman
Thanks for the tips. I don't think SaveAll is the solution I am looking for. What I want to do is enter a list of tags separated by commas then save them correctly. The 'simple tagging' article seems to be geared towards this but the solution offered is SO COMPLICATED and his comments are too brie

Re: How can I add to one table while I'm adding to another

2010-12-20 Thread Amit Badkas
Hi, You need to use behavior for this, I use modified version of http://bakery.cakephp.org/articles/dooltaz/2007/05/02/simple-tagging-behavioras this is a too old article and some code in it need to change as per latest version of CakePHP. Amit Badkas PHP Applications for E-Biz: http://www.sanis

Re: How can I add to one table while I'm adding to another

2010-12-20 Thread Amit Rawat
Hi, Use saveAll For more detail check the link: http://book.cakephp.org/view/75/Saving-Your-Data Enjoy, Amit On Tue, Dec 21, 2010 at 7:32 AM, georgeman wrote: > Here is the scenario based on a simple blog: > > The model for the blog is called Post. Post has the following fields: > id, title

How can I add to one table while I'm adding to another

2010-12-20 Thread georgeman
Here is the scenario based on a simple blog: The model for the blog is called Post. Post has the following fields: id, title, body, created, modified. There are two other related models: Tag and Comment. Tag has the following fields: id, name, created, modified. Comment has the following fields: i