Re: Relationships - HABTM

2009-01-21 Thread Webweave
http://book.cakephp.org/view/439/recursive On Jan 19, 7:57 am, rhythmicde...@gmail.com rhythmicde...@gmail.com wrote: I have been making some pretty good headway on defining the relationships for my models. However I am not getting some data that I expect to get. This may be due to my

RE: Relationships - HABTM

2009-01-21 Thread Steven Wright
Thank you. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Webweave Sent: Wednesday, January 21, 2009 4:33 PM To: CakePHP Subject: Re: Relationships - HABTM http://book.cakephp.org/view/439/recursive On Jan 19, 7:57 am, rhythmicde

Relationships - HABTM

2009-01-19 Thread rhythmicde...@gmail.com
I have been making some pretty good headway on defining the relationships for my models. However I am not getting some data that I expect to get. This may be due to my relationship definitions or a misunderstanding of what CakePHP will do for me. I am hoping one you can point me in the right

Re: Relationships - HABTM

2009-01-19 Thread brian
On Mon, Jan 19, 2009 at 10:57 AM, rhythmicde...@gmail.com rhythmicde...@gmail.com wrote: I have been making some pretty good headway on defining the relationships for my models. However I am not getting some data that I expect to get. This may be due to my relationship definitions or a

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
: Relationships - HABTM On Mon, Jan 19, 2009 at 10:57 AM, rhythmicde...@gmail.com rhythmicde...@gmail.com wrote: I have been making some pretty good headway on defining the relationships for my models. However I am not getting some data that I expect to get. This may be due to my relationship

Re: Relationships - HABTM

2009-01-19 Thread brian
: Relationships - HABTM On Mon, Jan 19, 2009 at 10:57 AM, rhythmicde...@gmail.com rhythmicde...@gmail.com wrote: I have been making some pretty good headway on defining the relationships for my models. However I am not getting some data that I expect to get. This may be due to my relationship

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
Ok I get it. Thanks man I really appreciate your time. Steve -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Monday, January 19, 2009 1:13 PM To: cake-php@googlegroups.com Subject: Re: Relationships - HABTM Both Recipe

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
? -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Monday, January 19, 2009 1:13 PM To: cake-php@googlegroups.com Subject: Re: Relationships - HABTM Both Recipe and Ingredient should be HABTM with each other. You can have many

Re: Relationships - HABTM

2009-01-19 Thread brian
To: cake-php@googlegroups.com Subject: Re: Relationships - HABTM Both Recipe and Ingredient should be HABTM with each other. You can have many recipes which share ingredients. The join table for both would be: ingredients_recipes ingredient_id, recipe_id You could add an id primary key

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
Ok thanks I will look into the recursive option. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Monday, January 19, 2009 10:50 PM To: cake-php@googlegroups.com Subject: Re: Relationships - HABTM That depends on what