John and AD7six,

Did I do this correctly?

class Level extends AppModel
{
   var $name = "Level";
   var $hasMany = array('Role1' =>
                         array('className'   => 'Role',
                               'conditions'       => '',
                               'order'              => '',
                               'limit'               => '',
                               'foreignKey'      => 'role1_id',
                               'dependent'      => false,
                               'exclusive'       => false
                               'finderSql'   => ''
                         ),
                         'Role2' =>
                         array('className'   => 'Role',
                               'conditions'      => '',
                               'order'              => '',
                               'limit'               => '',
                               'foreignKey'     => 'role1_id',
                               'dependent'     => false,
                               'exclusive'      => false
                               'finderSql'       => ''
                         )
   );
}

I hope that's right LOL! If I have this correct how would I pull in the
data. Would I do something like $this->Level->read(null, '44');

Then how would I access the titles field in the roles database when I'm
outputting into the view.

You guys are helping me out so much I totally appreciate all the help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to