-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 6.0.0, 6.0.2
-
Component/s: None
-
None
Hi,
I want to set a relation without _id reference.
I want to save, for example the key in the related document.
class Brand
include Mongoid::Documentfield :name, type: String
field :key, type: Symbolhas_many :products
end
class Product
include Mongoid::Documentfield :name, type: String
field :key, type: Symbolbelongs_to :marca
end
ProductDocument
Unknown macro: { _id}
For me is not important the key of the relation, only value.
Thanks.