nerdexam
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)
  • A
    6% (3)
  • B
    14% (7)
  • C
    76% (39)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full M70-101 Practice