nerdexam
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)
  • A
    12% (2)
  • B
    6% (1)
  • C
    76% (13)
  • D
    6% (1)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice