Hi@all!

In my Cakephp 1.3 Webapp I try to get related Content for my Menu.
Inside the Menus Model I call the following function as i found in
http://book.cakephp.org/1.3/view/1047/Joining-tables. Puts me out all
data from someOther table, neither data from joining table. All sql
errors where fixed, i still do not recive any data from the joining
table, what I do not understand

Controller:
$output = $this->Menu->findInbox(1);

Model:
var $name = 'Menu';
var $useTable = 'someOther';

function findRelatedContent($user) {
            $this->recursive = -1; .
            $query = $this->find('all', $options['joins'] = array(
                    array(
                        'table' => 'Content',
                        'alias' => 'Pages',
                        'type' => 'LEFT',
                        'conditions' => array(
                                'Content.showing = 1'
                        )
                    )
                )
            );

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to