Timeline for How to save only specific attribute value rather than saving the whole product in Magento2
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:55 | history | edited | CommunityBot |
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
|
|
Apr 13, 2017 at 8:18 | history | edited | Jaimin Sutariya | CC BY-SA 3.0 |
added 148 characters in body
|
Apr 12, 2017 at 11:42 | comment | added | Kingshuk Deb | Seems magento has basically kept all important functions intact. | |
Apr 12, 2017 at 11:41 | vote | accept | Kingshuk Deb | ||
Apr 12, 2017 at 11:40 | comment | added | Jaimin Sutariya |
Please go to line 1608 in the file. (Magento 2.1.5) there is another function public function saveAttribute(\Magento\Framework\DataObject $object, $attributeCode)
|
|
Apr 12, 2017 at 11:32 | history | edited | Jaimin Sutariya | CC BY-SA 3.0 |
added 10 characters in body
|
Apr 12, 2017 at 11:29 | comment | added | Kingshuk Deb | Upvoting it but not accepting as an answer right now. I will check and update. | |
Apr 12, 2017 at 11:11 | comment | added | Jaimin Sutariya |
Yes it will work for any entity. It will basically call Magento\Eav\Model\Entity\AbstractEntity::saveAttribute() which will accept a dataobject and entity code.
|
|
Apr 12, 2017 at 11:06 | comment | added | Kingshuk Deb | It should be basically for any entity. | |
Apr 12, 2017 at 11:01 | history | answered | Jaimin Sutariya | CC BY-SA 3.0 |