Sunday, November 29, 2009

Re: Undefined property help :(

Sorry my english is not good :)

i solved but there is another problem only this module is ok other
model has relationship problem foreighn key field is show but not as
list box.
i am confused :(

i think line 30 is not reason maybe reason is relationship

line 30 $bankSalLavs = $this->AjiltanBrt->BankSalLav->find('list');

following code generated by shell > cake bake all
class AjiltanBrt extends AppModel {

var $name = 'AjiltanBrt';

);
var $belongsTo = array(
'BankSalLav' => array( //BankSalLav was BankSalLavs i
removed 's' Is it cakephp issue?
'className' => 'BankSalLav', //BankSalLav was BankSalLavs i
removed 's'
'foreignKey' => 'bank_sal_lavs_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
'AjiltanTrlLav' => array(
'className' => 'AjiltanTrlLav',
'foreignKey' => 'ajiltan_trl_lavs_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
}

i removed "s" from all model relationship class name but only
AjiltanBrt model is ok other models have not list box.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: