Re: Associating a new model

2007-07-15 Thread [EMAIL PROTECTED]
In the 'Item' model add this: var $hasMany = array('List'); OPTIONAL: In the 'List' model add this: var $belongsTo = array('Item'); In your ITEM table, make sure each item has a unique id, i.e. give each row a key field called "id" and make sure that auto_increment is set. In your LIST table,

Associating a new model

2007-07-14 Thread jmartyniak
So first off I am a newbie to Cake. I am developing a small app. I have two models that I have created one is called List and the other is called Item. The functionality I would like to achieve is in the Create new (item/add) Item form I would like to give the user the ability to create a new L