This is the error I get: Missing Database Table
Error: Database table to_users for model ToUser was not found. Here's the code that prompts it: <?php class Mail extends AppModel { var $actsAs = array('Containable'); var $name = 'Mail'; var $validate = array( 'from_user_id' => array('numeric'), 'from_contact_id' => array('numeric'), 'to_user_id' => array('numeric'), 'to_contact_id' => array('numeric'), 'project_id' => array('numeric'), 'sent' => array('date'), 'subject' => array('notempty') ); var $belongsTo = array( 'FromUser' => array( 'className' => 'User', 'foreignKey' => 'from_user_id' ), 'FromContact' => array( 'className' => 'Contact', 'foreignKey' => 'from_contact_id' ), 'ToUser' => array( 'className' => 'User', 'foreignKey' => 'to_user_id' ), 'ToContact' => array( 'className' => 'Contact', 'foreignKey' => 'to_contact_id' ), 'Project' => array( 'className' => 'Project', 'foreignKey' => 'project_id' ) ); } ?> And I already read this: http://book.cakephp.org/view/851/Multiple-relations-to-the-same-model My code seems to comply. It's just not working. Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---