Ok Ill have to wait code is in production right now.
On Friday, September 13, 2013 2:40:16 PM UTC-4, John Andersen wrote:
-- On Friday, September 13, 2013 2:40:16 PM UTC-4, John Andersen wrote:
Please ensure that the Players, Seasons and Divisions tables primary key is ID and not like tablename_id.
When done, try again :)
Enjoy, John
On Friday, 13 September 2013 01:58:43 UTC+3, Eric Haskins wrote:Has anyone else seen where hasMany returns empty arrays's? ExamplePlayersplayer_idSeasonsseason_idDivisionsdivision_idPlayersToSeasons < ----- hasMany Players, Seasons, Divisions,idseason_idplayer_iddivision_idSo many will come back perfect out of 300 players maybe 20 records will beArray([200] => array([PlayersToSeasons] => array(id => 3season_id => 3.........),[Players] => array(),[Divisions] => array()))So the parent where the find is called is perfect but the Players array will be blank or the Divisions array will be blank.I was forced to write individual queries for all the records I needed. I checked all the foreignkeys were the same type and everything
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:
Post a Comment