From 63fe340bc3453e4b8ab92143c5ad6eb35cb5291a Mon Sep 17 00:00:00 2001 From: Giallombardo Nathan Date: Thu, 18 Jul 2024 11:38:41 +0000 Subject: [PATCH] fix association has_and_belong_to_many --- lib/couchbase-orm/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchbase-orm/associations.rb b/lib/couchbase-orm/associations.rb index 96ef6eee..183b21b1 100644 --- a/lib/couchbase-orm/associations.rb +++ b/lib/couchbase-orm/associations.rb @@ -89,7 +89,7 @@ def has_and_belongs_to_many(name, **options) elsif options[:polymorphic] ::CouchbaseOrm.try_load(ref_value) else - assoc.constantize.find(ref_value) + assoc.constantize.find(ref_value, quiet: true) end val = Array.wrap(val || []) instance_variable_set(instance_var, val)