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)- A2% (1)
- B5% (2)
- C9% (4)
- D84% (36)
Community Discussion
No community discussion yet for this question.