Sunday, September 15, 2013

Re: hasMany weirdness

Yeah I have the primaryKey Set on all the models that don't use just "id"  that's why I posted it here to see if anyone else had seen this behavior.  Its weird because its consistently the same records that will show blank players arrays or Team arrays.   So I just started writing custom queries with joins using $this->PlayersToSeasons->query() and the problem is gone. I know that will send some Framework nazi's into committing suicide but you do what you have to to make your app work. Till I can sort out why cake is hanging me out to dry lol

Eric Haskins
High Octane Brands LLC


--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: