Questions tagged [entity-manager]
The entity-manager tag has no usage guidance, but it has a tag wiki.
11
questions
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\...
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 ...
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....
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(
'...
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.
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 ...
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!
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 ...
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/...
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 ...
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 ...