From 66fbbd969251b96ef0a9958c3fa08ea32baa3808 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 5 Feb 2020 18:27:03 -0500 Subject: [PATCH] Jobs.builds: Fetch via Jobs.jobset_id --- src/lib/Hydra/Schema/Jobs.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lib/Hydra/Schema/Jobs.pm b/src/lib/Hydra/Schema/Jobs.pm index b00f3e0f..714497f1 100644 --- a/src/lib/Hydra/Schema/Jobs.pm +++ b/src/lib/Hydra/Schema/Jobs.pm @@ -195,4 +195,22 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-06 12:33:28 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:C5Tyh8Ke4yC6q7KIFVOHcQ +=head2 builds + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "builds", + "Hydra::Schema::Builds", + { + "foreign.job" => "self.name", + "foreign.jobset_id" => "self.jobset_id", + }, + undef, +); + 1;