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
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('