Re[2]: [Dbix-class] Resultset doesn't create related rows

2012-04-20 Thread Dima
Thanks for your answer. Yes, it's better to give a different name for the productId column in the Product table. This is some kind of external id, let's name it itemId and remain everything else unchanged. I still get the error with the last DBIC. :( Fri, 20 Apr 2012 15:33:25 +0200 от Alexander

Re: [Dbix-class] Resultset doesn't create related rows

2012-04-20 Thread Alexander Hartmaier
Why has the Product table both an id and a productId column? Aside from that it looks ok to me. You might want to only specify the foreign column name in your belongs_to rel to make the definition shorter and less error prone. Best regards, Alex Am 2012-04-20 15:02, schrieb Dmitry Bigunyak: > Hi

[Dbix-class] Resultset doesn't create related rows

2012-04-20 Thread Dmitry Bigunyak
Hi everyone! From the ResultSet documentation on the create method (http://search.cpan.org/~arodland/DBIx-Class/lib/DBIx/Class/ResultSet.pm#create) I understood that it's able to create related rows in related relationships. But on my attempt to create the main row with some related I get the