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)