stephpy / timeline-bundle

Symfony2 bundle to make timeline
193 stars 57 forks source link

Foreign Key Relationships ? #199

Closed jayesbe closed 8 years ago

jayesbe commented 8 years ago

I have just tested user deletion scenarios and I am seeing the timeline bomb all over the place with various users that have interactions with others whom have now been hard deleted using MySQL DB level cascading. I am wondering what the best scenario would be to handle this?

Option1: I am assuming that I need to iterate through the timeline information of the user that has been deleted and remove those entries from the currently existing users.

Option2: Add soft delete to Users so they are never actually removed. (I don't like this option)

stephpy commented 8 years ago

Hi,

Did you see this part of documentation ? https://github.com/stephpy/timeline-bundle/blob/master/Resources/doc/filter.markdown#removing-actions-with-unresolved-references

If you have references to unresolved components (softdeleted or harddeleted resources), action will be dropped automatically from the list (your option 1).

jayesbe commented 8 years ago

Thank you.

stephpy commented 8 years ago

You're welcome.