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

[Setup Scripts] Adding Order Attributes (Pseudo EAV) #174

Open
sprankhub opened this issue Jan 30, 2019 · 1 comment
Open

[Setup Scripts] Adding Order Attributes (Pseudo EAV) #174

sprankhub opened this issue Jan 30, 2019 · 1 comment

Comments

@sprankhub
Copy link

By #51 and the related videos, most of the important topics of adding EAV attributes seem to be covered. However, I had a hard time adding an order attribute. Theoretically, order is an EAV entity as well. However, practically, it is just a pseudo EAV entity (at least in Magento Open Source). Through Magento\Sales\Setup\SalesSetup, the "EAV" attributes are actually mapped to flat tables. So you cannot use Magento\Eav\Setup\EavSetup to add order attributes. You have to use the SalesSetup for that. This is worth a short video I think :-)

@Vinai
Copy link
Contributor

Vinai commented Jan 30, 2019

Thanks, yes, you are right!
Legacy everywhere!

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

2 participants