Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
ORM Soft Delete Purge not working
  • Hi,

    I tried Soft Delete for the first time. The delete() and restore() works perfectly as expected, but purge() is not doing what expected. It updates the deleted_at timestamp but my record is still in the database.

    Here is my code:
    Controller: http://bin.fuelphp.com/snippet/view/BE
    Model: http://bin.fuelphp.com/snippet/view/BD

    I am doing anything wrong???

    Second question: is it also possible to do the purge() when the deleted() has been done?
    I have written a special view only for deleted items, where i wanted to have action buttions for restore() and purge().

    Greetz
    Kay
  • You probably have to pop into IRC and talk to Steve (uru). He wrote it, but doesn't do forums, so he won't read this... ;-)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion