Questions tagged [entity-manager]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

How to map data from external API to new entity

I want to use best practice to map data from API to my entity. My conditions are: external API response as array, and need to save it to my Magento entity, but response array have different key names, ...
user avatar
  • 141
0 votes
1 answer
144 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 ...
user avatar
  • 519
2 votes
1 answer
934 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....
user avatar
  • 16.5k
2 votes
1 answer
193 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( '...
user avatar
  • 210
2 votes
4 answers
2k 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.
user avatar
1 vote
1 answer
975 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 ...
user avatar
0 votes
1 answer
144 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!
user avatar
9 votes
2 answers
2k 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 ...
user avatar
  • 11.6k
3 votes
0 answers
1k 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/...
user avatar
28 votes
1 answer
5k 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 ...
user avatar
1 vote
0 answers
337 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 ...
user avatar