Hi friends! I've some doubts in using bindModel, my table structure
is:

users
articles
comments

i.e.

user hasMany articles
user hasMany comments

article belongsTo user
article hasMany comments

comment belongsTo article
comment belongsTo user

Could I bind the models in the following way:


$this->User->bindModel
(
        array(
                'hasMany'=>array(
                        'Article'=>array(
                                'hasMany'=>array(
                                        'Comment'=>array(
                                                'belongsTo'=>array('User')
                                                )
                                        )
                                )
                        )
                )
);


Otherwise, how can I fulfill this requirement?

Please help.

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