Closed bipinu closed 10 years ago
I have the same problem. Can you confirm if this is a library bug?
I have not found this issue, added Jenssegers\Mongodb\Eloquent\SoftDeletingTrait not the laravel one, deleted an entry and found the deleted_at key, listing all entries via all(); returns all except with deleted_at. so it worked for me.
This fixed it for me.
Dang! It took me another day but I finally figured it out. This particular behavior is displayed by Eloquent as well, and isn't limited Moloquent. However, this is not a bug with the library. Closing the issue.
Just for the record, if the your Model has a constructor, it needs to call the parent's constructor (Moloquent, Eloquent, etc.). This is because PHP does not implicitly call parent constructor, if you define one: http://php.net/manual/en/language.oop5.decon.php
Thanks for the great work. Really appreciate it!