Magento
M70-201 · Question #18
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, SattributeCode);. 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, SattributeCode);
- D$model->getResource()->save($model, $attributeCode);
How the community answered
(30 responses)- A10% (3)
- B3% (1)
- C73% (22)
- D13% (4)
Community Discussion
No community discussion yet for this question.