nerdexam
Magento

M70-101 · Question #4

When changes are made to more than one of a collection's items using setData ('some', 'value'), which of the following methods will save the changes in the collection?

The correct answer is D. $collection->save ( ). See the full explanation below for the reasoning.

Question

When changes are made to more than one of a collection's items using setData ('some', 'value'), which of the following methods will save the changes in the collection?

Options

  • A$collection->saveAll ( );
  • B$collection->saveItems ( );
  • C$collection->saveAllItems ( );
  • D$collection->save ( );

How the community answered

(42 responses)
  • A
    10% (4)
  • B
    2% (1)
  • C
    17% (7)
  • D
    71% (30)

Community Discussion

No community discussion yet for this question.

Full M70-101 Practice