[Catalyst] Re: Perl::Rails?

Matt S Trout dbix-class at trout.me.uk
Fri Dec 9 19:19:07 CET 2005


On Fri, Dec 09, 2005 at 04:53:17PM +0100, Johan Lindstr�m wrote:
> At 15:02 2005-12-09, Brandon Black wrote:
> >I run into this weakness in two ways primarily.  The first is that
> >while the failure of a Controller to have correct syntax results in
> >the whole app failing to start and showing you the parse error (a good
> >thing), if you make a similar syntax mistake in a Model class (using
> >the standard CDBI/DBIC autoloader models), you get no such warning.
> >The first you hear of it is that some method you're trying to call
> >from that model doesn't exist at runtime.  This came up before and
> >someone had a solution for it, but I couldn't find the email earlier,
> >and in any case the real solution should just work for the
> >default/naive case.
> 
> I think this was a thinko in Catalyst::Model::CDBI where it didn't die 
> properly if Loader failed. But that seems to be fixed and released in 0.11 .

And DBIx::Class ignores too many module loading errors, as every user can
attest. andyg provided a reasonable patch for this but it didn't quite pass
for CDBICompat; I'm going to look into getting this merged in as part of
the resultset branch.

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list