nerdexam
Magento

M70-201 · Question #92

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

(43 responses)
  • A
    2% (1)
  • B
    5% (2)
  • C
    9% (4)
  • D
    84% (36)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice