By that, I mean where is the DB resultset translated into an array
using model names as keys. I've been poring over DboSource without any
luck.

The reason I want to know is that I'm seeing something strange. I have
a hasMany assoc. that uses a finderQuery. The query itself works like
a charm in a terminal but Cake doesn't seem to like it. All of the
results -- whether an association for a given record exists or not --
have an empty array.

'Links' => array(
        (int) 0 => array()
)

But the weird part is that the model name is "Link", not "Links". Yes,
I've triple-checked that I didn't use the latter as the $hasMany key.

'Link' => array(
        'className' => 'Link',

The main model has 6 other hasMany associations, each using their own
finderQuery (legacy DB with nasty schema) and they're all fine. I'm
pretty sure the problem is the column names I've had to use (and that
may require a separate query to the list) but I'd really like to
figure out why the model name is coming out pluralized.

I'm using 2.1.3

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to