Daniel McBrearty wrote:
> i'm actually using "MySchema->connection($dsn)"
> 
> then MySchema->resultset( ... )
> 
> but i seem to remember someone telling someone they oughtn't ....

Weeeel ... I'm not amazingly fond of that usage but it works by design, not by 
accident and it isn't going away. It may cause you all sorts of fun if you 
ever need multiple connections at once.

Why not just make it a method on the schema so you call

$schema->methodname

and then that can access the schema as $self ?

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to