I am using cakephp 2.3.5.
There are B and model A model is a relationship HABTM,
C model and intermediate model AB is the relationship of hasOne.

A.php


class A extends AppModel {
   public $recursive = 2;
   public $hasAndBelongsToMany = array(
        'B' => array(
            'with' => 'C',
         )
   );
}
AB.php


class AB extends AppModel {
   public $hasOne = array(
        'C'
   );
}


AsController.php
$ this-> A-> find ('all');

If it is carried out, you pick up the results of up to AB, but it does not pick 
up the results of the association of C and AB.

In the confirmation,
$ this-> AB-> find ('all');
So I pick up the results.

Is it not possible like this?
Please tips.
Thank you.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to