Translatable behavior not working if used with Containable

Posted by bakerjr on Stack Overflow See other posts from Stack Overflow or by bakerjr
Published on 2010-04-27T03:13:01Z Indexed on 2010/04/27 3:13 UTC
Read the original article Hit count: 299

Filed under:
|
|

An example: $this->Parent->Behaviors->attach('Containable');

    $parent = $this->Parent->find('first',  array(

        'contain' => array('Child' => array(

            'order' => 'Child.order ASC',

        )),

        'conditions' => array('Parent.id' => $parentId)

        )

    );

Child has translated data and parent isn't using translatable. When I fetch the child data this way it's not translated.

Is Translatable (and also SmoothTranslate) working with Containable? What solutions would you guys recommend?

Thanks in advance

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about translation