What's your model name for the utilizadores table? My guess is CakePhp's inflector is not dealing very well with the portuguese plural rules Utilizador <-> Utilizadores. You could get the portuguese inflections maintened by the portuguese/brazilian cakephp community http://groups.google.com/group/cake-php-pt
On Thu, Dec 10, 2009 at 10:50 AM, Délsio Cabá <[email protected]> wrote: > Hi all, > > I am about to create my first application with cakephp. > Actuallly I'm an experienced php programmer. > > I already went to the guide on creating the blog application. > > Find attached my database structure. > > As you can see I have many relationships. > > I tried through the console creating the forms, but for some reason I can't > get them to work, I get this error when I try to add a new record: > > *Notice* (8): Undefined property: Utilizadore::$Utilizadorescategoria > [*APP/controllers/utilizadores_controller.php*, line *51*] > Code | Context > > $this->data = $this->Utilizadore->read(null, $id); > } > $utilizadorescategorias = > $this->Utilizadore->Utilizadorescategoria->find('list'); > > $id = "1" > > UtilizadoresController::edit() - APP/controllers/utilizadores_controller.php, > line 51 > Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 > > Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 240 > Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206 > [main] - APP/webroot/index.php, line 83 > > > *Fatal error*: Call to a member function find() on a non-object in * > /home/webmasters/domains/sioas/public_html/app/controllers/utilizadores_controller.php > * on line *51* > > All I need to now is to have forms to fill all those tables. > > Regards > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
