Hi,

I'm writing a Commentable Behavior based on some ideas from

http://josediazgonzalez.com/posts/view/2/Commentable_Behavior

Briefly, the behavior binds a hasMany association between a model and  
the Comment model. This works well, and muy tests pass ok.

My problem happens when I issue a model->find with 'contain' =>  
'Comments'. Querys are right and retrieve data, but the results array  
is empty for the Comment key.

The code of the Behavior and a test are here:

http://bin.cakephp.org/saved/48209

Fake model is what its name implies, a Fake model for testing. All  
models actsAs Containable (via AppModel)



---
Fran Iglesias <[email protected]>
http://cakephpilia.blogspot.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to