So sometimes the results for my model finds seem to very between the
two formats:
$results['Faction'] = array()
and
$results['Faction'] = array('id'=>null, 'name'=>null)
What determines the two? I would prefer that it always give me the
listed fields with null values, but I am unsure what is going on to
give that. I am toying around with the idea of having a function put
into the afterFind() that would add the missing data if needed but it
seems a bit clunky. Thanks.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Tuesday, May 8, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment