Hi there,

I have an application with 'Regions' that have many 'Councils' that in
turn have many 'People'.

It is all working well and the view page of a 'Region' has the
associated 'Councils' available in it. I need to get deeper to get the
'People' available on the 'Region' view page as well. My model looks
like this (I imagine I need to add 'People' to the model?):

<?php
class Region extends AppModel {
        var $name = 'Region';
        var $displayField = 'name';
        //The Associations below have been created with all possible keys,
those that are not needed can be removed

        var $hasMany = array(
                'Council' => array(
                        'className' => 'Council',
                        'foreignKey' => 'region_id',
                        'dependent' => false,
                        'conditions' => '',
                        'fields' => '',
                        'order' => '',
                        'limit' => '',
                        'offset' => '',
                        'exclusive' => '',
                        'finderQuery' => '',
                        'counterQuery' => ''
                )
        );

}
?>

Any help much appreciated...

-- 
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