ExamGecko
Question list
Search
Search

Question 27 - AD0-E711 discussion

Report
Export

How should a record be removed from a database which is using a model that was inherited from the

\Magento\Framework\Model\AbstractModel class?

A.
Call the "unset" method on this model object
Answers
A.
Call the "unset" method on this model object
B.
Call the "delete" method on this model object
Answers
B.
Call the "delete" method on this model object
C.
Call the "remove" method on this model object
Answers
C.
Call the "remove" method on this model object
Suggested answer: B

Explanation:

To remove a record from a database using a model inherited from the

\Magento\Framework\Model\AbstractModel class, call the "delete" method on the model object.

Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/database.html#database-models

asked 02/10/2024
Jaime GONCALVES
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first