Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorsuthern

    Hey, I just discovered this, so I thought I'd share it.

    I have three tables named jobs, job_phases, and phase_tasks.

    Using a find statement within the phaseTask controller, I can get the 'job' information. Like this

    $this->PhaseTask->find('all',array('include' => array('job_phases' => array('include' => 'jobs'))));

    When I start to use models at that depth I've found it useful to return arrays instead of Akelos objects to cut down on memory usage.

    Perhaps this will help someone. :)