Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by sundialsvc4 (Abbot)
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"
Replies are listed 'Best First'.
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 studying the Monastery: (5)
As of 2016-05-01 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.