[Catalyst] moniker_map arg in app_create.pl

Tomas Doran bobtfish at bobtfish.net
Fri May 6 06:58:59 GMT 2011


On 5 May 2011, at 16:27, matthew couchman (JIC) wrote:

> <sheepish>
>
> Sorry! It looks like I just had my arguments in the wrong order:
>
> perl script/app_create.pl model App DBIC::Schema \
>     App::Schema create=static \
>     components=EncodedColumn \
>     AutoCommit=1 \
>     moniker_map='{ plant_species => "PlantSpecies" }' \
>     dbi:mysql:antspec 'username' ‘password’
>
> does the trick. Thanks for the replies.
>
> </sheepish>
>

That was hella easy to miss (I at least had _no idea_).

A doc patch with an example to help other people avoid the same trap  
would be very welcome :)

Cheers
t0m




More information about the Catalyst mailing list