-
Notifications
You must be signed in to change notification settings - Fork 132
Added the ability to use entity properties in metadata #76
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
Added the ability to use entity properties in metadata #76
Conversation
Hi again. |
Hello, @rocketweb |
@rocketweb, |
@rocketweb Thank you very much, we will include it into 2.3.1 upcoming release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rocketweb Thanks for your contribution! I have pulled your PR into our current develop branch, setup tax rate and tax rule meta data as described in PR, I tried a few ways to setup data and test for tax rule, but could not persist tax rule data correctly. Could you please send us your data, meta data, and test for us to review?
…ing-framework into use-entity-properties-in-metadata
Description
Added the ability to use entity properties inside metadata entities for when you make API requests to create something that has to contain an array of properties from other entities, e.g. the request for creating a new tax rule has to contain an array of the ids of the tax rates that will be associated to it.
Now you can have a meta file that represents a tax rate, which would look something like this:
And a meta file that represents a tax rule, which would look something like this:
Notice the
<value>tax_rate.id</value>
inside thetax_rule
entity. Now a tax rule can be created successfully.Contribution checklist