Wednesday, May 29, 2013

Re: containable problem

I'm glad it worked. It always helps to use 'fields' in order to keep down the returned data to only those needed. Not only it's good for the database but it also helps you check the cake produced SQL against what you expect plus make more sense on the results to see what you want instead of everything (or a minimal set when you debug). The main model doesn't need you to add any 'id' fields or external keys but contain does, if you don't it won't fetch any data, so I'm always adding them in model as well to be on the safe side.

On Wednesday, May 29, 2013 10:46:11 PM UTC+3, Robert Gravel wrote:
So embarrassing. In my long list of associations School->User  was missing? Your code worked thanks a bunch..

Robert


--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: