i wonder if exceptions that are thrown in php will terminate the script in php?
cause when i save an entry that is already created in doctrine it throws an exception.
i catch the exception and ignore it (so that the user won’t see it) but the script seems to be terminated.
is there a way to catch the exception and keep the script alive?
thanks
You need to wrap the function call(s) that may throw an exception in a
try...catchblock.If you catch the exception(s), the script will not terminate. If a thrown exception does not have a
catchblock to jump into, the aforementioned will happen.