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('Employee', 'JobSpecializations');
public $hasMany = array('Employee', 'JobSpecializations');
}

I set up the controllers to scaffold and everything works perfectly.

However, my actual user table is in another database, as defined by the 
$useDbConfig.  Whenever I uncomment that and try load the employees index 
page, I get this error.

*Notice* (8) <http://localhost/employees/>: Undefined index: name 
[*CORE\Cake\View\Scaffolds\index.ctp*, line *38*]

*Notice* (8) <http://localhost/employees/>: Undefined index: id 
[*CORE\Cake\View\Scaffolds\index.ctp*, line *38*]


The two user tables are identical.  As far as I know, the only difference 
is the change of $useDbConfig.  Any help on how to resolve this?

thanks

robbie


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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