Thanks.

On Tue, May 8, 2012 at 1:39 PM, euromark <dereurom...@googlemail.com> wrote:
> you can usually find the latter in belongsTo relations.
> cake will then return the result with those values set to null.
>
> if you have hasMany relations (a separate query) it doesnt make sense to
> return lots of empty result sets
> and therefore it would just be an empty array
>
>
> Am Dienstag, 8. Mai 2012 18:55:10 UTC+2 schrieb Michael:
>>
>> 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+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to