This should work: class Contact extends AppModel { var $hasMany = array( 'Call' => array( 'foreignKey' => false, 'conditions' => array( 'Call.number = Contact.number' ) ) ); }
hth grigri On Jul 9, 12:06 am, Justin Beeler <jrble...@gmail.com> wrote: > I'm working with two tables: Contacts and Calls. > > I want to join the calls with the contacts on a field called > "number" (the phone number). Is there not a way in cake to manually > join tables and not have it join on a field like [model]_id ? > > If you need any further details, let me know. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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