]> git.donarmstrong.com Git - debbugs.git/commitdiff
find_or_create doesn't work properly with HRI apparently
authorDon Armstrong <don@donarmstrong.com>
Sun, 12 Mar 2017 14:43:06 +0000 (07:43 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 12 Mar 2017 14:43:06 +0000 (07:43 -0700)
Debbugs/DB/ResultSet/Arch.pm

index d0e6aa210894a74496f6a8072c30f6f116e07c99..572ed0ae9df3ebe3d3559d3e427c8b36474aa3bf 100644 (file)
@@ -41,10 +41,9 @@ sub get_archs {
        $archs{$a} =
            $self->result_source->schema->resultset('Arch')->
            find_or_create({arch => $a},
-                         {result_class => 'DBIx::Class::ResultClass::HashRefInflator',
-                          columns => [qw[id arch]],
+                         {columns => [qw[id arch]],
                          }
-                         )->{id};
+                         )->id;
     }
 
     return {%archs{@archs}};