Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / AuthType.pm
index d4a7d77..ce57ceb 100644 (file)
@@ -46,7 +46,7 @@ __PACKAGE__->table("auth_types");
 
 =head2 summary
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 0
 
 =cut
@@ -59,7 +59,7 @@ __PACKAGE__->add_columns(
   "auth_tag_to_report",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
   "summary",
-  { data_type => "mediumtext", is_nullable => 0 },
+  { data_type => "longtext", is_nullable => 0 },
 );
 
 =head1 PRIMARY KEY
@@ -76,6 +76,21 @@ __PACKAGE__->set_primary_key("authtypecode");
 
 =head1 RELATIONS
 
+=head2 auth_subfield_structures
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AuthSubfieldStructure>
+
+=cut
+
+__PACKAGE__->has_many(
+  "auth_subfield_structures",
+  "Koha::Schema::Result::AuthSubfieldStructure",
+  { "foreign.authtypecode" => "self.authtypecode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 auth_tag_structures
 
 Type: has_many
@@ -92,9 +107,14 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sy0+bAJuYz5t9OVCq0Vo8Q
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:USULz4Y8i0JC73GxcxJ+BA
 
+sub koha_object_class {
+    'Koha::Authority::Type';
+}
+sub koha_objects_class {
+    'Koha::Authority::Types';
+}
 
-# You can replace this text with custom content, and it will be preserved on regeneration
 1;