hi bakers,
I think I found a bug in model.php. I have table structure as follows
blogs -- HABTM -- authors
I am trying to build a tree starting from a blog. The tree should look
like this
Blog (Starting point)
|--Author
|-- Blog
|--Author
|--Author
|--Blog
|--Author
|--Author
To do this.. I am using following code in my controller
$this->Blog->expects('Author');
$this->Blog->Author->expects('Article');
$this->Blog->Author->Blog->expects('Author');
$this->Blog->recursive = 3;
$result = $this->Blog->findById(200);
I am correct result for the first set of query..but after that CakePHP
disregard the associations and fetches data for all the
associations..so the final result that I get looks like this
Blog (Starting point)
|--Author
|-- Blog
|--Author1
|--Author2
|--Blog (association is disregarded from here...as you can
I don't want user information but is still fetched)
|--Author1
|--Author2
|--User1
|--User2
I am suspecting there is some problem with the function read in
model.php..it has only two arguments whereas everywhere else in
model.php read function is called by passing three arguments.. ($db-
>read($this, $queryData, $recursive);
looking forward for some insight;
Ritesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---