Q. Which method on a model saves the object to the database?

  • (A) insert()
  • (B) commit()
  • (C) save()
  • (D) create()
πŸ’¬ Discuss
βœ… Correct Answer: (C) save()
Explanation: The save() method is used to insert or update model instances in the database.
Explanation by: Rakesh Yadav
The save() method is used to insert or update model instances in the database.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
74
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Yadav
Publisher
πŸ“ˆ
97%
Success Rate