[Catalyst] Reference to the connected Model::DBIC schema for testing?
    Matt S Trout 
    dbix-class at trout.me.uk
       
    Wed Oct 11 10:53:54 CEST 2006
    
    
  
Drew Taylor wrote:
> On 10/10/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>> my $model_dbic_schema_object = MyApp->model('Foo');
> 
> Shouldn't the name actually be "$model_dbic_resultset_object"? I'm
> still trying to wrap my head around _all_ of DBIC, so I'm not just
> being pedantic. :-)
No. MyApp::Model::Foo isa C::M::DBIC::Schema
If you had a Bar class in the relevant schema,
MyApp->model('Foo::Bar') would give you a DBIx::Class::ResultSet though.
-- 
      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