On 6/28/06, sicapitan <[EMAIL PROTECTED]> wrote:

> Notice</b>:  Undefined property:  CompaniesController::$User in
> <b>C:\Program
> Files\xampp\htdocs\eApproval\app\controllers\companies_controller.php</b>
> on line <b>31
>
> Line 31 being $this->User->save...

hi sicaptan

I guess it should be :
$this->Company->User->save( ...
because your controller is Companies, it only builds the "Company"
model by default (which has a User model inside because of the
association).
to use $this->User directly, you must set
var $uses = array("Company","User");
in CompaniesController.

++++++++
clement

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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