Questions tagged [entity-manager]

The tag has no usage guidance, but it has a tag wiki.

0
votes
1answer
11 views

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 ...
2
votes
0answers
123 views

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....
2
votes
1answer
105 views

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( '...
2
votes
1answer
544 views

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.
0
votes
1answer
343 views

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 ...
0
votes
1answer
116 views

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!
8
votes
1answer
1k views

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 ...
3
votes
0answers
932 views

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/...
25
votes
1answer
4k views

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 ...
1
vote
0answers
309 views

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 ...