Q. Which method is used to save changes to a model instance?

  • (A) commit()
  • (B) save()
  • (C) store()
  • (D) update()
πŸ’¬ Discuss
βœ… Correct Answer: (B) save()
Explanation: The save method is used to write or update model instance data to the database.
Explanation by: Mr. Dubey
The save method is used to write or update model instance data to the database.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
99
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate