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.

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?