Magento
M70-201 · Question #17
Which of the following allows you to save a single attribute value on an EAV entity?
The correct answer is C. $model->getResource()->saveAttribute($model, $attributeCode);. See the full explanation below for the reasoning.
Question
Which of the following allows you to save a single attribute value on an EAV entity?
Options
- A$model->saveAttribute($attributeCode);
- B$model->save(SattributeCode);
- C$model->getResource()->saveAttribute($model, $attributeCode);
- D$model->getResource()->save($model, $attributeCode);
How the community answered
(17 responses)- A12% (2)
- B6% (1)
- C76% (13)
- D6% (1)
Community Discussion
No community discussion yet for this question.