X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Koha%2FSchema%2FResult%2FAqordersItem.pm;h=c43410545bda200be1e60e1f520310fe40dec70b;hb=92a415932cc5a30b03d8b73443eb110c300cbcbf;hp=50cc3d35f7502a6c2f14985ca3633cc9b5156b2b;hpb=9f2f0dbc4a1e46c799b013fcf574aeec37b80526;p=koha.git diff --git a/Koha/Schema/Result/AqordersItem.pm b/Koha/Schema/Result/AqordersItem.pm index 50cc3d35f7..c43410545b 100644 --- a/Koha/Schema/Result/AqordersItem.pm +++ b/Koha/Schema/Result/AqordersItem.pm @@ -22,6 +22,7 @@ __PACKAGE__->table("aqorders_items"); =head2 ordernumber data_type: 'integer' + is_foreign_key: 1 is_nullable: 0 =head2 itemnumber @@ -39,7 +40,7 @@ __PACKAGE__->table("aqorders_items"); __PACKAGE__->add_columns( "ordernumber", - { data_type => "integer", is_nullable => 0 }, + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "itemnumber", { data_type => "integer", is_nullable => 0 }, "timestamp", @@ -51,9 +52,26 @@ __PACKAGE__->add_columns( ); __PACKAGE__->set_primary_key("itemnumber"); +=head1 RELATIONS + +=head2 ordernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "ordernumber", + "Koha::Schema::Result::Aqorder", + { ordernumber => "ordernumber" }, + { on_delete => "CASCADE", on_update => "CASCADE" }, +); + -# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OlihytSmp6fCmG/hAT7FEg +# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9KFzTfBzan4H1BxT1suyXA # You can replace this text with custom content, and it will be preserved on regeneration