You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Foo:
someFoo:
abc: "source and solution to all our problems"Bar:
someBar:
beer: "@someFoo->abc"
The value resolver usually copy a value from one item to another when using @someFoo->abc here. But instead of a copy I may want to have a reference to the other field.
So what Alice does is:
$someBar->beer = $someFoo->abc
But how to achieve this?
$someBar->beer =& $someFoo->abc
This feels missing when generating objects.
Please note: This is not a discussion about references, how valuable they are and when to do them. I do not want to chat about the pro and cons of references neither about specific use-cases. This is a plain simple note that Alice does not seem to be able to assign by reference and I hope for some solution to that.
The text was updated successfully, but these errors were encountered:
There is indeed no support for this at the moment. If you feel it is necessary, I'll gladly accept a PR about it although I think it would be easier with #998
The value resolver usually copy a value from one item to another when using
@someFoo->abc
here. But instead of a copy I may want to have a reference to the other field.So what Alice does is:
But how to achieve this?
This feels missing when generating objects.
Please note: This is not a discussion about references, how valuable they are and when to do them. I do not want to chat about the pro and cons of references neither about specific use-cases. This is a plain simple note that Alice does not seem to be able to assign by reference and I hope for some solution to that.
The text was updated successfully, but these errors were encountered: