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)- A10% (4)
- B2% (1)
- C17% (7)
- D71% (30)
Community Discussion
No community discussion yet for this question.