I have a cake2 project i`m working on for a while now.

Today i noticed that something that worked yesterday, doesn't work
anymore.

I have this model  file:

<?php
//file /app/Model/ProfilPersoana.php

class ProfilPersoana extends AppModel {
        public $name = 'ProfilPersoana';
        public $useTable = 'profil_persoane';

        public function findByEntitateId($entitateId = null) {
                //do stuff
        }

}

and this controller file:

<?php
//file app/Controller/StructuraController.php

class StructuraController extends AppController {
        public $name = 'Structura';
        public $uses = array(
                'Entitate',
                'ProfilPersoana',
                [..]
        );

public function index(){
    $this->ProfilPersoana->findByEntitateId(10);
}


in the end I get this:

error bla blah...
DboSource->_execute('findByEntitate..., Array)


What happens is, the model class isn`t loaded, and cake tries to
automagically execute my "findByEntitateId()"


I should mention the cake 2 documentation says:
The Model class OptionValue would be found in a file named
OptionValue.php

also, yesterday it worked OK, and I havent`t touched that part of the
code today...
I am at a loss, please help!

-- 
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