Open v-kolesnikov opened 6 years ago
This adapter doesn’t support associations yet. So this is expected to fail. It should have its own schema and custom implementation of individual association types.
Thank you @solnic ! So, I assume if I want to combine mongo relations with other (sql relations for instance) - I have to use combine_with and custom mappers?
@v-kolesnikov I have to use combine_with and custom mappers?
yes, until somebody adds association API 😅
yes, until somebody adds association API
ОК) Should the association API combines only relations of the same adapter (mongo) ? Or it's possible to have cross-adapter associations? With override: true
option for instance.
@v-kolesnikov yes you can have cross-adapter associations and yes it will require override: true
Relation can not be finalized if it has at least one defined association.
It can be fixed by defining self own
finalize_associations!
method for ROM::Mongo::Schema or inheriting this class from ROM::Memory::Schema.