Acabo de empezar a probar 1.2.

En mi controlador hacia esto en 1.1 usando el componente pagination de
bakery

        list($order,$limit,$page) = $this->Pagination->init($criteria);
        $this->Artist->recursive = 2;
        $this->Artist->expects('Picture');
        $this->Artist->Picture->expects('Medium', 'Technique');
        $data = $this->Artist->findAll($criteria, NULL, $order, $limit,
$page);

Como en 1.2 la paginacion va "de serie" intento lo siguiente:

        $this->Artist->unbindModel( array('hasAndBelongsToMany' =>
array('Contact')) );
        //$this->Artist->expects(array('Picture'));
        $this->Artist->recursive = 1;
        $this->set('artists', $this->paginate());

pero no consigo filtrar los modelos que necesito ni con unbindModel ni con
expects.

¿que me he perdido?



-- 
---------------------------------------------------
Where is the wisdom we have lost in knowledge?
Where is the knowledge we have lost in information?
T.S.Elliot

--~--~---------~--~----~------------~-------~--~----~
Has recibido este mensaje porque estás suscrito a Grupo "CakePHP-es" de Grupos 
de Google.
 Si quieres publicar en este grupo, envía un mensaje de correo 
electrónico a [email protected]
 Para anular la suscripción a este grupo, envía un mensaje a [EMAIL PROTECTED]
 Para obtener más opciones, visita este grupo en 
http://groups.google.com/group/CakePHP-es?hl=es.

-~----------~----~----~----~------~----~------~--~---

Responder a