Re: Model is reading from the wrong table ??

2012-03-08 Thread heohni
Hi! Thanks for your answer. I will try this! Am Donnerstag, 8. März 2012 13:53:46 UTC+1 schrieb Rodrigo Rodrigues Moyle: > > You could not use the model Eigenschaftsarten using static access, use > this: > > ClassRegistry::init('Eigenschaftsarten')->find(...) > > Em quinta-feira, 8 de março de 20

Re: Model is reading from the wrong table ??

2012-03-08 Thread Rodrigo Rodrigues Moyle
You could not use the model Eigenschaftsarten using static access, use this: ClassRegistry::init('Eigenschaftsarten')->find(...) Em quinta-feira, 8 de março de 2012 05h59min45s UTC-3, heohni escreveu: > > Hi, > > I have this model 'Eigenschaftsarten' > > class Eigenschaftsarten extends AppModel {

Model is reading from the wrong table ??

2012-03-08 Thread heohni
Hi, I have this model 'Eigenschaftsarten' class Eigenschaftsarten extends AppModel { var $name = 'Eigenschaftsarten'; var $useTable = 'Eigenschaftsarten'; var $primaryKey = 'EIA_ID'; function getEIA_IDNames($array){ $return = $this->find('first', array( 'conditions' => array( '' ), 'fields' => '