Wednesday, April 1, 2009

Model Name Weirdness

I have a component that needs to access a model with related tables.
The findAll query in the component wasn't returning the related
tables. I realized that in the component I was referencing the model
with a plural name. The controller where everything was working used
a singular name. As soon as I changed it to a singular name my
related tables were returned.

I'm wondering if this is by design or just a quirk?

I'm just learning CakePHP and find these naming conventions hard to
keep straight. Is there is an easy reference some place that I've
over looked?

Thank you!

Levi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: