-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Array of objects in command #42
Comments
The same goes for these methods (
|
It probably needs to look something like this?
And for our event:
|
Hi @prolic, not to be rude, but when do you think you will start working on this issues? |
Just checked with current master branch and I generated this:
which looks good for me, maybe I am missing something? |
That does look good indeed, I'll try and check if I'm fully up-to-date, will let you know. |
My bad, it's working, I was on 637ffc3! |
👍 |
@prolic Found a little bug; In my event (
In the |
see list_nullable branch/ PR |
Hi @prolic,
We'd like to use an array of objects as data in a command, but it seems that's not possible now, or we're doing something wrong.
We've got this object created:
And we try to use an array of
TermPrice
's in our command:But this results in the following in our
SubmitFormGlobalScope
class:The result of
termPrices()
is not an array, this method should probably loop through$this->payload['termPrices']
, and callfromArray
on all of those items?The same goes for the value for
termPrices
inwith()
(thetoArray()
should be called in a loop to calltoArray()
for all termPrices).Thanks!
The text was updated successfully, but these errors were encountered: