Re: Adding data in a One-To-Many Relationship

2008-05-01 Thread Reza Muhammad
That's right. It works now. Thank you :) On May 1, 2008, at 8:25 AM, validkeys wrote: > > if you hadn't figured this one out. > > If you are trying to access your models model from your parts model to > create a drop down of models in a parts view, use the following: > > latest 1.2: $this->Par

Re: Adding data in a One-To-Many Relationship

2008-04-30 Thread validkeys
if you hadn't figured this one out. If you are trying to access your models model from your parts model to create a drop down of models in a parts view, use the following: latest 1.2: $this->Part->Model->find('list'); earlier: $this->Part->Model->generateList(); does that help? On Apr 30, 7:2

Re: Adding data in a One-To-Many Relationship

2008-04-30 Thread Reza Muhammad
Forget my ignorance, I forgot to use var $belongsTo. :) On Apr 30, 2008, at 3:22 PM, Reza Muhammad wrote: > > Hi Guys, > > I just started using CakePHP 1.2, and I have a question concerning a > One to Many relationships. > > I have two models, 'Model' and 'Part'. One model can have many > parts

Adding data in a One-To-Many Relationship

2008-04-30 Thread Reza Muhammad
Hi Guys, I just started using CakePHP 1.2, and I have a question concerning a One to Many relationships. I have two models, 'Model' and 'Part'. One model can have many parts. I don't have a problem creating Model controller, but when I want to add new parts, I want to have a list of the