[RDBO] mod_perl / RDBO / segfault

2007-04-02 Thread Adrian Howard
Don't consider this a bug report yet - since I'm still in the process of narrowing this down and getting a small test case failing. However, just in case it rings any "of course its Foo" bells I / appear/ to be seeing Rose::DB::Object::Loader::make_classes causing a segfault when running und

Re: [RDBO] mod_perl / RDBO / segfault

2007-04-02 Thread Adrian Howard
On 2 Apr 2007, at 12:49, Adrian Howard wrote: > Don't consider this a bug report yet - since I'm still in the process > of narrowing this down and getting a small test case failing. [snip] Ignore me. Blame a dodgy DBD::mysql install. Adrian -

[RDBO] docs request

2007-04-02 Thread Jonathan Vanasco
I have a request for the docs: I'm adding a new table with 2 unique indexes / keys on it , one of which is a multiple column key. the docs are really unclear on how thats done in the setup. example: unique keys are: 1- single col - 'hex_id' 2- mult co

Re: [RDBO] Loader: request and doc change

2007-04-02 Thread John Siracusa
On 4/2/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > doc change: > with_managers seems to default to true , it should be listed as such It is. File: lib/Rose/DB/Object/Loader.pm ... =item B If true, create L-derived manager classes for each L subclass. Defaults to the value of the l

Re: [RDBO] docs request

2007-04-02 Thread John Siracusa
On 4/2/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > I'm adding a new table with 2 unique indexes / keys on it , one of > which is a multiple column key. the docs are really unclear on how > thats done in the setup. http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Metadata.pm#uni

Re: [RDBO] Loader: request and doc change

2007-04-02 Thread Jonathan Vanasco
On Apr 2, 2007, at 11:45 AM, John Siracusa wrote: > It is. File: lib/Rose/DB/Object/Loader.pm oh, thats tricky. i read those docs like crazy trying to figure out what was going on. > ...but did what instead? everything as-is , except for the omission of that line. I like having the she

[RDBO] Overriding the metadata class

2007-04-02 Thread publiustemp-rosedb
Hi all, Never used Rose::DB before, but I've heard enough good things about it that I'm giving it a try. Some of what I'm writing is probably clunky, so pointers welcome. I'm trying to provide my own metadata class and I've run into a problem I don't quite understand. Here's my base class: p

Re: [RDBO] Overriding the metadata class

2007-04-02 Thread publiustemp-rosedb
Irrelevant side note: > __PACKAGE__->meta->setup( > table => 'os', > columns => [ > os => { > type=> 'varchar', > length => 31, > primary_key => 1, > not_null=> 1 > }, > type

Re: [RDBO] Overriding the metadata class

2007-04-02 Thread John Siracusa
On 4/2/07, [EMAIL PROTECTED] wrote: > sub setup { > my ( $self, %arg_for ) = @_; > $self->SUPER::setup(%arg_for); > foreach my $column ( $self->columns ) { > my $name = $column->name; > > # here's the problem > $self->alias_column( $name => "_$name"

Re: [RDBO] Overriding the metadata class

2007-04-02 Thread Ovid
--- John Siracusa <[EMAIL PROTECTED]> wrote: > sub add_columns > { > my($self) = shift; > > my @added_columns = $self->SUPER::add_columns(@_); > > foreach my $column (@added_columns ) > { > $self->alias_column($column->name => '_' . $column->name) >

Re: [RDBO] Overriding the metadata class

2007-04-02 Thread John Siracusa
On 4/2/07, Ovid <[EMAIL PROTECTED]> wrote: > I didn't see it in the docs, but is there anything akin to 'mutator' > metadata which would let me do something like the following? > > foreach my $method ( $class->mutators ) { > $self->make_override( $method ); > } > > The 'mutators' would retu