On 9/6/06, simb <[EMAIL PROTECTED]> wrote:
> I assume that cakephp has just a simple pattern that plurals are
> singulars with an "s" at the end, right?
Assumption is the mother of all f***ups :-)
Cake can handle a much greater variety of singulars and plurals. Take
a look at cake/libs/inflector
http://manual.cakephp.org/chapter/models
$useTable
If the database table you wish to use isn't the plural form of the
model name (and you don't wish to change the table name), set this
variable to the name of the table you'd like this model to use.
On 9/6/06, simb <[EMAIL PROTECTED]> wrote:
>
>
Hi,
I just try to dig myself into cakephp and while setting up my database,
I stumbled upon a question: how to handle tablenames that are written
in singular with "...y" and in plural "...ies", like "buddy" and
"buddies" ?
I assume that cakephp has just a simple pattern that plurals are
singulars