nerdexam
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)
  • A
    10% (3)
  • B
    3% (1)
  • C
    73% (22)
  • D
    13% (4)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice