Magento
M70-101 · Question #119
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 ($attributeCode);
- C$model->getResource ( ) ->saveAttribute ($model, $attributeCode);
- D$model->getResource ( ) ->save($model, $attributeCode);
How the community answered
(51 responses)- A6% (3)
- B14% (7)
- C76% (39)
- D4% (2)
Community Discussion
No community discussion yet for this question.