[Catalyst] moniker_map arg in app_create.pl

Lee leegee at gmail.com
Wed May 4 18:01:43 GMT 2011


What plural should he use?

On 04/05/2011 18:37, Hernan Lopes wrote:
> you should name your model singular, not plural
>
> On Wed, May 4, 2011 at 1:31 PM, matthew couchman (JIC) =

> <matthew.couchman at bbsrc.ac.uk <mailto:matthew.couchman at bbsrc.ac.uk>> =

> wrote:
>
>     Hi,
>
>     I have a table called plant_species which by default creates a
>     schema result class PlantSpecy when I run my app_create.pl
>     <http://app_create.pl> script. To get around this I=92ve tried
>     passing moniker_map=3D=92{ plant_species =3D> =93PlantSpecies=94 }=92=
 as an
>     extra argument. It looks like the argument is read because it
>     appears in lib/App/Model/App.pm but I still have a PlantSpecy.pm
>     file rather than PlantSpecies.pm.
>
>     Can anyone help?
>
>     Thanks very much,
>
>                                     Matt.
>
>
>     _______________________________________________
>     List: Catalyst at lists.scsys.co.uk <mailto:Catalyst at lists.scsys.co.uk>
>     Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>     Searchable archive:
>     http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>     Dev site: http://dev.catalyst.perl.org/
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110504/23420=
b68/attachment.htm


More information about the Catalyst mailing list