Skip Menu |

This queue is for tickets about the Catalyst-Model-DBIC-Schema CPAN distribution.

Report information
The Basics
Id: 60558
Status: resolved
Priority: 0/
Queue: Catalyst-Model-DBIC-Schema

People
Owner: Nobody in particular
Requestors: mst [...] shadowcat.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Fixed in 0.44 .