Hi,

I had the same problem (Cake v1.2.0.4798alpha) with bake.php and
irregular inflections in german.... :)

I solved it somehow - and with your table "artikel_categorie" it
should work as follows:

-----------------------------------------------------------
$uninflectedPlural = array();

$irregularPlural = array(
      'artikel_categorie' => 'artikel_categorieen',
      // next line is for bake.php "model to controller"-mapping
      'artikelcategorie' => 'artikelcategorieen'
);

$singularRules = array();

$uninflectedSingular = $uninflectedPlural;

// and the modified irregularSingular-Mapping
$irregularSingular = array_merge( array_flip($irregularPlural),
array( 'artikelcategorieen' => 'ArtikelCategorie' ) );
-----------------------------------------------------------

Not the smartest solution, but it works for my inflections... Hope
that workaround will help you too!

Regards


On Apr 12, 12:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hey guys, for my project I have a lot of irregular inflections (the
> fact that my models are in dutch has something to do with that ;-)
>
> But I have trouble with defining them correctly so that cake knows
> them, and also bake can work with them.
> Currently I have only used the $irregularPlural (and
> $irregularSingular) variables because I think this should be enough
> My setup is here:http://bin.cakephp.org/view/1466261275
>
> It are the fine basics that I have problems with, take for example the
> model ArtikelCategorie, the plural should be ArtikelCategorieen.   How
> are we supposed to work with underscores, upper/lowercase characters?
> Is it right the way I've put it there?
>
> Also, bake chokes on it, I don't know if it's a bug in bake, or
> because I didn't configure the inflector correctly.
> When i start bake, it lists the model as ArtikelCategories, even
> though I have baked the model ArtikelCategorie successfully and the
> plural seems correct.  Then when i choose to bake a controller for it,
> it says:
> "Would you like this controller to use other models besides
> 'ArtikelCategory'?"
> And finally it stops and says "You must have a model for this class to
> build scaffold methods. Please try again."
>
> So i manually created a controller, called
> ArtikelCategorieenController with $name = 'ArtikelCategorieen'
> When trying to bake views, it lists the controller as
> artikelcategorieen (no capital C) and later on stops, saying
> The file '/app/controllers/artikelcategorieen_controller.php' could
> not be found.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to