Subject: | use_moose default getting applied to existing schemas |
Date: | Fri, 20 Aug 2010 16:19:01 +0100 |
To: | bugs-Catalyst-Model-DBIC-Schema [...] rt.cpan.org |
From: | Matt S Trout <mst [...] shadowcat.co.uk> |
It seems that if you already have a DBIC schema and call the helper to
update it via Schema::Loader the new 'use_moose => 1' default gets used
and the files are not only moosified but the make_immutable line is written
outisde the hash, making this operation a pain to back out.
I agree that use_moose should be the default for -new- model generation
but we should not be enforcing Moose on existing DBIC schemas just because
somebody updated the helper.
--
Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue
http://shadowcat.co.uk/blog/matt-s-trout/ http://twitter.com/shadowcat_mst/
Email me now on mst (at) shadowcat.co.uk and let's chat about how our Catalyst
commercial support, training and consultancy packages could help your team.