Volltext-Suche: Rose-Beziehung von File zu full_text
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 6 Apr 2022 09:22:01 +0000 (11:22 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 18 May 2022 12:13:48 +0000 (14:13 +0200)
SL/DB/File.pm

index 615f8d1..0405b74 100644 (file)
@@ -8,6 +8,14 @@ use strict;
 use SL::DB::MetaSetup::File;
 use SL::DB::Manager::File;
 
+__PACKAGE__->meta->add_relationship(
+  full_text            => {
+    type               => 'one to one',
+    class              => 'SL::DB::FileFullText',
+    column_map         => { id => 'file_id' },
+  },
+);
+
 __PACKAGE__->meta->initialize;