Hi, On 02.08.2008, at 18:34, Ansgar Burchardt wrote:
The C::M::DBIC::Schema documentation says that I should be able toaccess the schema object via $c->model("MyApp::Something")->schema, butif I do so I get the following error: Can't locate object method "schema" via package "DBIx::Class::ResultSet"
let's say your model is called 'FilmDB' and you got an 'Actor' schema/ table. I guess you did something like $c->model('FilmDB::Actor')- >schema->txn_do - right? Please try instead $c->model('FilmDB')- >schema->txn_do(...).
# to access schema methods directly: $c->model('FilmDB')->schema->source(...); HTH, plu -- Johannes Plunien | mailto:[EMAIL PROTECTED] | http://www.pqpq.de
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/