Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
go ahead... be a heretic
 
PerlMonks  

Re: DBIx::Class "Can't call method 'select' on an undefined value"

by sundialsvc4 (Monsignor)
on Jan 22, 2009 at 01:57 UTC ( #738014=note: print w/ replies, xml ) Need Help??


in reply to DBIx::Class "Can't call method 'select' on an undefined value"

And doing load_classes in the schema base-file “magically” fixes it.

Not good enough for me... I wanna understand this.


Comment on Re: DBIx::Class "Can't call method 'select' on an undefined value"
Re^2: DBIx::Class "Can't call method 'select' on an undefined value"
by dragonchild (Archbishop) on Jan 23, 2009 at 03:57 UTC
    load_classes() ensures everything is hooked together properly. It's a bit of side-effect magic that mst isn't thrilled with, but at least it's (mostly) all in one place. Go talk in #dbix_class@irc.perl.org if you really want to understand more.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://738014]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2014-04-17 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls