Re: [Dbix-class] has_many relationship docs

2006-04-27 Thread Matt S Trout
Toby Corkindale wrote: > Did anyone come back (perhaps offlist) with an answer to this? > > Reason I ask is that I'm just trying to get my head around adding objects via > many_to_many relationships. Is there a shortcut method, a-la has_many's > *_add_to() method? > > ie. > Actor has a many_to_ma

Re: [Dbix-class] has_many relationship docs

2006-04-27 Thread Toby Corkindale
Did anyone come back (perhaps offlist) with an answer to this? Reason I ask is that I'm just trying to get my head around adding objects via many_to_many relationships. Is there a shortcut method, a-la has_many's *_add_to() method? ie. Actor has a many_to_many relationship to Roles, eg: Schema::A

[Dbix-class] use overload causes error

2006-04-27 Thread Stephen Moore
Hello, I've written a short script using DBIx::Class::Schema. It works about like I would expect, until I added the following line in GenesDB::SegmentTypes: 'use overload '""' => 'type', fallback => 1;' (I found this in DBIx::Class::Manual::Cookbook.) When I run the script with that line unco

Re: [Dbix-class] select * from questions

2006-04-27 Thread Matt S Trout
Aran Deltac wrote: > On 4/27/2006, "Gavin Carr" <[EMAIL PROTECTED]> wrote: >> 3. For situations where you have queries that aren't supported by DBIC yet, >> is there a way to source the underlying Schema dbh for doing statement >> handles directly, or this not kosher? There's nothing obvious in >>

Re: [Dbix-class] select * from questions

2006-04-27 Thread Aran Deltac
On 4/27/2006, "Gavin Carr" <[EMAIL PROTECTED]> wrote: >Hi guys, > >Just starting to use DBIx::Class in anger for the first time and have >a few questions/comments: > >1. Is there a way of accessing the $schema object from a Row or ResultSet >method, or is that a Bad Thing to do? For instance, say p

[Dbix-class] dbicadmin - DBIC and shell goodness

2006-04-27 Thread Aran Deltac
I've created a script in dbic-current/maint/ called dbicadmin. It allows you to create, modify, and remove data useing DBIC classes. Once I started playing with it beyond my original needs I found that it does a great job at combining DBIC and unix shell tricks. Please perldoc it for more inform

Re: [Dbix-class] Pg patch from konobi - can people test please?

2006-04-27 Thread Jesper Krogh
Hi. The patch is probably correct (copied from the Rails-counterpart), but this functionality is in Perl coded directly in DBD::Pg. I still think that it's migrating code from DBD::Pg that shouldn't be there. There is a bug in the code, but thats fixed by this (much simpler) patch. The bug is th

[Dbix-class] Pg patch from konobi - can people test please?

2006-04-27 Thread Matt S Trout
konobi's lobbed together a patch for Storage::DBI::Pg that hopefully improves sequence etc. support - can people who know/use such things more than I have a look over and say whether it's suitable for inclusion? === Pg.pm == --- Pg.