There's a class that does only that, inflector.php, and it has a pretty complete list of irregular plural forms as well. And no, it won't work for languages other than English out of the box, but you can make it work if necessary.
On 4 Jun 2008, at 16:19, teum wrote: > > Hi, > > I was just wondering how come Cake would automatically know that a > "Person" model corresponds to a "people" table in your Db as it is > said here : http://book.cakephp.org/view/26/view-conventions. It may > be easy with a "Fruit" model and a "fruits" table because Cake can > look for a table matching the following pattern : "[model name]s", but > for Person/people I really wonder how it can work (if it does). > > And what about naming models and tables in an other language than > English ? > > Thanks in advance for your answers. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
