I am just learning CakePHP, so excuse me
I am using CakePHP 1.2.5 Auth component with UsersController. User model contains two tables:
class User extends AppModel {
var $name = 'User';
var $belongsTo = 'Company';
}
When login() is called, I see the data being retrieved in the SQL log (LEFT JOIN is being executed), so the model seems correct, but Auth only stores the data from users
table and drops everything else. How can I retrieve company data later on without doing an extra query?