Hi,

I recently needed to use translation behavior in a project, it all went 
well wen I wrote the admin backend, but in the frontend I started getting 
some nasty error from the TranslateBehavior:

Fatal Error (256): Association nameTranslation is already binded to model 
Property [CORE/cake/libs/model/behaviors/translate.php, line 443]

I am using cake 1.3

If this happened to some one, please help.

""" Model """
var $actsAs = array(
'Translate' => array('name' => 'nameTranslation', 'desc' => 
'descTranslation'),
);
"""

I already tried changing it to:

""" Model """
var $actsAs = array(
'Translate' => array('name', 'desc'),
);
"""
and use "$this->Property->bindTranslation(array('name' => 
'nameTranslation'));" when needed,
but than the pagination wont retrieve the translations properly. Note: 
works fine with $this->Property->find().


-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to