Re: [RDBO] conditional relationships

2007-01-16 Thread Ted Zlatanov
On 16 Jan 2007, [EMAIL PROTECTED] wrote: > On 1/15/07, Cory Bennett <[EMAIL PROTECTED]> wrote: > > Ahh, found the magic. > > In Rose::DB::Object::Metadata::Relationship::OneToMany I found the special > > (but buried) 'query_args' variable. So this will do what I want: > > relationships => [ >

Re: [RDBO] conditional relationships

2007-01-16 Thread John Siracusa
On 1/15/07, Cory Bennett <[EMAIL PROTECTED]> wrote: > Ahh, found the magic. > In Rose::DB::Object::Metadata::Relationship::OneToMany I found the special > (but buried) 'query_args' variable. So this will do what I want: > relationships => [ > prices => { > type => 'on

Re: [RDBO] conditional relationships

2007-01-15 Thread Cory Bennett
Ahh, found the magic. In Rose::DB::Object::Metadata::Relationship::OneToMany I found the special (but buried) 'query_args' variable. So this will do what I want: relationships => [ prices => { type => 'one to many', class => 'Price', colu

[RDBO] conditional relationships

2007-01-15 Thread Cory Bennett
I am wondering if there is a way to represent conditional relationships. In the Vendor/Product/Price tutorial example lets say I change the prices table to look like: CREATE TABLE prices ( id SERIAL NOT NULL PRIMARY KEY, product_id INT NOT NULL REFERENCES products (id), re