Questions tagged [entity-manager]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 views

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\...
Konrad's user avatar
  • 35
0 votes
1 answer
203 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 ...
Ben Rubin's user avatar
  • 549
2 votes
1 answer
1k 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....
Rohan Hapani's user avatar
  • 17.1k
2 votes
1 answer
209 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( '...
BOES's 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.
Rafael Corrêa Gomes's user avatar
1 vote
2 answers
1k 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 ...
Shivika Sharma's user avatar
0 votes
1 answer
149 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!
Sheshgiri Anvekar's user avatar
9 votes
3 answers
3k 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 ...
Giel Berkers's user avatar
  • 12.1k
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/...
Sebastian-Laurenţiu Plesciuc's 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 ...
Raphael at Digital Pianism's user avatar
1 vote
0 answers
343 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 ...
David Verholen's user avatar