[Dbix-class] autosetup of dbic classes from master dbic class possible?

2007-11-29 Thread Mario Minati
Hello, I'm developing an intranet application with Catalyst an postgresql. As deleted (and old) records needed to be accesible I created the following db structure: table: company - contains company data - PK: id - on delete/update copy old data to company_historic table: company__historic

[Dbix-class] calling delete in a resultset with a join

2007-11-29 Thread Jonas Alves
Hello all, I', triyng to call delete in a resultset with a join. like this: $schema->resultset('Movie')->search( { 'category.update_flag' => 'old' }, { join => 'category' } )->delete; The SQL I'm getting is: DELETE FROM movie WHERE ( update_flag = ? ): 'old' And I was

[Dbix-class] Re: autosetup of dbic classes from master dbic class possible?

2007-11-29 Thread Mario Minati
On Thursday 29 November 2007 10:07:24 you wrote: > Hello, > > I'm developing an intranet application with Catalyst an postgresql. As > deleted (and old) records needed to be accesible I created the following db > structure: > > table: company - contains company data > - PK: id > - on delete/upd

[Dbix-class] DBIC with NULL Primary Key and fails

2007-11-29 Thread Justin Jereza
Hello. I've got table_a(id SERIAL PK, v TEXT), table_b(id SERIAL PK, v TEXT), and table_c(id SERIAL PK, x REF table_a(id), y REF table_b(id), z REF table_b(id)). When I try to insert data to table_a and table_b through table_c, DBIC errors saying that it tried inserting a NULL value in the PK colum