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)- A78% (28)
- B3% (1)
- C6% (2)
- E14% (5)
Community Discussion
No community discussion yet for this question.