[Flow] Question regarding deleted objects
Marc Neuhaus
apocalip at gmail.com
Thu Apr 2 12:35:01 CEST 2015
You could simply use the object and user as argument for the link. In the
default case
where the objects exists you can show the object, otherwise you could
directly forward
to some page of that user.
As a concrete example, if you'd have some hosted "blogging" platform, you
routes could look like this:
/blog/[someUserName]/[somePostName]
That username + postname would correspond to some uuid of course, so now
you could model your action somethink like this:
if (post does not exist) {
redirect to user overview
}
show post
I hope i explained my idea properly :)
Cheers
Marc
2015-04-02 12:25 GMT+02:00 David Sporer <david.sporer at gmail.com>:
> Hey guys,
>
> I have a general questions regarding the optimal way of handling objects,
> especially deleted objects.
> I have customers/users that can create objects. Every object has a unique
> link which is working fine until the customer decides to delete some
> objects.
> The problem then is that Flow throws an exception (Exception while
> property mapping for target type „bla“, at path with identitiy not found).
> Currently I’m showing a nice error page, means the user that tries to open
> the link is not redirected to the Flow Exception page.
> But the ideal way would be to know the parent customer of the deleted
> object because I could then redirect the user that tries to access the
> object to a page where he can send a message to the customer e.g.
> Soft deletion is not really something I want to do because in some cases
> there could be really lots of objects associated with the objects that are
> deleted.
>
> What would be your approach of handling this? Just a (maybe stupid) idea
> would be to save the identifier of the object before deleting it and doing
> a lookup for the identifier if a object is not found. Question in this case
> would be how to hook into the Exception that is thrown.
>
> Can you help me? :-)
>
> Regards,
> David
>
> Btw.: I’ve been at Inspiring Conference last weekend. Thanks for everyone
> making this such an awesome event. I’ve been really working my whole week
> of vacation so far on ideas I had because of the talks :-)
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list