CakePHP Tricks

Member hasOne Education
Education hasOne School
// Controller
$conditions = array(
    'contain' => array(
        'Education' => array(
            'School' => array()
        )
    )
);
$members = $this->Member->find('all', $conditions);

No hay comentarios:

Publicar un comentario en la entrada

Gracias por tu comentario. Tú opinión es muy valiosa.