Skip to main content
Share Your Experience: Take the 2024 Developer Survey
12 votes

Good practice: how to save many objects?

If you have to do a mass update of one (or more attributes) to the same value, you can use: $this->_objectManager->get('Magento\Catalog\Model\Product\Action') ->updateAttributes($...
Sinisa Nedeljkovic's user avatar
5 votes

Custom EAV model in magento 2

I found a module in Github which has custom EAV Model. I have built custom EAV model successfully by following this module. May be it will help someone.
Sarvagya's user avatar
  • 1,217
4 votes

Magento 2 Data key is missing: code-entity

Well this is a notable bug in Magento 2.2.0 This issue arises when you have enabled Google Analytics settings from store configuration and specify the option Enable Content Experiments you will find ...
Priyank's user avatar
  • 7,702
3 votes

Magento 2 : Order Edit Error "No such entity with cartId = 458"

The problem is that the current store has always the default store ID in the admin panel (on the fronted everything is OK). As result I catch the No such entity with cartId = xxx ... exception, ...
rajneesh gupta's user avatar
3 votes

get eav attribute collection Code format in Magento2

Since getCollection is deprecated, I would go this way: namespace Vendor\Module\Model\Config\Source; use Magento\Framework\Data\OptionSourceInterface; use Magento\Eav\Model\ResourceModel\Entity\...
Attila Naghi's user avatar
  • 4,023
3 votes

get eav attribute collection Code format in Magento2

add instance of Magento\Eav\Model\Attribute to the constructor of your class protected $eavAttribute; protected $entity; public function __construct( ... \Magento\Eav\Model\Attribute $...
Rakesh Varma's user avatar
  • 2,226
2 votes

Custom Customer attribute not being created in database magento 2.1

Your Trying to work in vendor file that's wrong practice for Magento, please follow bellow steps to create customer attribute Create New module inside app/code Create New Folder => Test (Vendor) ...
Navin Bhudiya's user avatar
2 votes

Is the EAVCleaner Extension safe to Use on my Magento installation?

You should of course check this on a dev shop before. At the time of writing, there are two important open pull requests you should merge yourself if not already done: #19 & #20. You can easily ...
Simon's user avatar
  • 5,736
1 vote

Magento Data MIgration Tool for to 2 - Mismatch of entities in the document

Run select * from eav_attribute_group; and select * from eav_attribute_set; on both your source and destination databases after the failure, and you can see what the differences are in the tables. I ...
Joseph Oppegaard's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible