Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Representation of type Array cannot be merged #309

Open
GuangChenPidouki opened this issue Oct 12, 2018 · 0 comments
Open

Representation of type Array cannot be merged #309

GuangChenPidouki opened this issue Oct 12, 2018 · 0 comments

Comments

@GuangChenPidouki
Copy link

class definition:
class:Order

class OrderAsk < Order has_many :trades

api call:
orders_new = present orders, with: APIv2::Entities::OrderEntity unless orders.empty?

so, if orders has one or more orders that has multiple trades (trade number > 1), it is likely that above present api call would fail with error: Representation of type Array cannot be merged

And in my entity class, there is no code about trades used

Is there an issue for this case?
Or is there a workaround to use a entity for a list of record, which contain some has_many relation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant