nerdexam
Magento

M70-101 · Question #24

Which of the following methods will force an EAV resource collection model to include an attribute in its result set?

The correct answer is A. addAttributeToSelect ($attribute). See the full explanation below for the reasoning.

Question

Which of the following methods will force an EAV resource collection model to include an attribute in its result set?

Options

  • AaddAttributeToSelect ($attribute);
  • BgetResource ( ) ->addAttribute($attribute);
  • CaddFieldToSelect ($attribute);
  • DgetSelect ( )->from ( ' ', $attribute);
  • EaddAttributeToCollection ($attribute);

How the community answered

(36 responses)
  • A
    78% (28)
  • B
    3% (1)
  • C
    6% (2)
  • E
    14% (5)

Community Discussion

No community discussion yet for this question.

Full M70-101 Practice