It's by design. Always refer to models in the singular. The controller names are plural because they deal with one or more instances of some Model, basically. That's kind of the same reasoning for the table name: each table holds multiple records for Model.
On Wed, Apr 1, 2009 at 5:39 PM, lsenft <[email protected]> wrote: > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
