Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How can I truly delete a record that has set softdelete?

I began to start phalcon framework recently.
This framework is awesome!
But, I have a quiestion about ORM.
How can I truly delete a record that has set softdelete?



10.1k
edited Apr '14

Ha, that's a good question. Maybe try directly with PHQL? (or SQL)

Hmm... ORM Do not have "forcedelete" function? I think I ought to implement the forcedelete.



54.9k
Accepted
answer

In your model, set up the delete() function to just do a soft delete. Then you can add an actualDelete() function that calls parent::delete().

Thankyou! I deceide that use this solution.