Questions tagged [entity-manager]
The entity-manager tag has no usage guidance, but it has a tag wiki.
Code refactor - EntityManager, ResourceModel and handlers
I have a slider module which use EntityManager. I want to refactor code to use ResourceModel, but i have problem with many to many relations. With EntityManager i used EntityManager\Operation\...
EntityManager is trying to insert an existing row instead of updating the row
I have an extension property on Magento's Invoice class, and I'm trying to make an API method that sets the value of my extension attribute for a specific invoice. I'm using my class as an extension ...
Magento 2 : Invalid method Magento\Eav\Model\Entity\Attribute::isScopeStore
I am getting an issue on Magento 2.2.6 when trying to save my module record. This error occurs sometimes and the error disappears if run Magento upgrade command. But it comes again sometime. system....
Remove attribute from entity
I added attributes in this way without problems: $this->startSetup(); $installer = new Mage_Sales_Model_Resource_Setup('core_setup'); $entities = array( 'quote_item', ); $options = array( '...
Invalid method Magento\Eav\Model\Entity\Attribute::isAllowedForRuleCondition
I am getting an issue on Magento 2.2 when trying to create promotion rule. This error occurs sometimes and the error disappears if run Magento upgrade command. But it comes again sometime.
Export Product IDs with Magento export functionality
I have an extension that works with product Ids instead of product SKUs for import for which i need to export product ids along with the SKUs to match the products. As far i have checked there is no ...
Why magento 2 Setup/Uninstall Script ONLY deletes modules installed through Composer?
Why Magento 2 Setup/Uninstall Script ONLY deletes modules installed through Composer? I am not able to understand the reason behind this!
Magento 2 : extensionpool, read handlers and save handlers
Can anyone explain to me how to use ReadHandler, SaveHandler and the use of the EntityManager/ExtensionPool? I'm trying to wrap my head around it, but I can't quite understand how to implement it. If ...
Working with Models and Databases in Magento 2
So I've been following along with these questions : https://stackoverflow.com/questions/31983546/in-magento-2-what-is-the-correct-way-for-getmodel/31984198 https://stackoverflow.com/questions/...
Magento 2.1: using the entity manager
From 2.1 Magento has introduced Magento/Framework/Model/EntityManager I may be wrong here but from my understanding it is to replace Magento/Framework/Model/AbstractModel which was implementing the ...
Magento 2.1 EntityManager getList without Collection
From my understanding, the classic Magento Models will be deprecated in favor of the new EntityManager. Loading and Saving Simple Objects is no problem so far, but currently, I'm stuck with loading ...