Events received during a subscription are dispatched directly to the given block, thus they don't go through the relation pipeline. That means that mappers don't affect the received events:
rom.relation(:tasks).as(:entity).subscribe do |event|
# event is not an entity here...
end
Is there an easy way to fix this?
Events received during a subscription are dispatched directly to the given block, thus they don't go through the relation pipeline. That means that mappers don't affect the received events:
Is there an easy way to fix this?