I'm a bit confused.. it seems the useTable variable is being ignored
when a controller is accessing an associated model.  For example:

I have a model named School:

class School extends AppModel {
        var $name = 'School';
        var $useTable = 'my_school_master';
}

This works great when using the schools_controller.php. However when
i'm in a different controller and I try to access the School model, it
breaks telling me "Error: Database table schools for model Schools was
not found."

For example, cust_accts_cotroller.php has:

class CustAcctsController extends AppController {
        var $name = 'CustAccts';
        var $uses = array('CustAccts', 'Schools');

        function add() {
                $this->set('school_data', $this->School->find('all'));
        }
}



So, the CustAcct controller is accessing the Schools model, and
looking for the "schools" table, which tells me it's ignoring the
useTable variable..

Anyone have any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to