Re: Multiple Databases Model Relationship

2012-01-06 Thread robbie
I found my problem. The Employee table didn't have values for the Job table. The error was because the links were absent for certain records. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org a

Multiple Databases Model Relationship

2012-01-04 Thread robbie
Hi all, I have two tables: Users Jobs The models are set up as such class Employee extends AppModel { # public $useDbConfig = 'timetrack'; public $primaryKey = 'employee_id'; public $useTable = 'user'; public $belongsTo = array('Job'); } class Job extends AppModel { #public $hasMany = array('