nerdexam
Magento

M70-201 · Question #25

Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?

The correct answer is B. $collection->addFieldToFilter('date_posted',. See the full explanation below for the reasoning.

Question

Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?

Options

  • A$collection->addAttributeToFilter('date_posted',
  • B$collection->addFieldToFilter('date_posted',
  • C$collection->addPostDateFilter('2011-04-01', '2011-04-30');
  • D$collection->addFieldToSelect(('date_posted',

How the community answered

(19 responses)
  • A
    16% (3)
  • B
    74% (14)
  • C
    5% (1)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice