Unable to do different operations based on publish' and 'save only version' option click

Hi All,

I’m using pimcore 6.4.2 version. I have one use case like I need to do different operations for ‘publish’ and ‘save only version’ option-click. As we know, we can able to different using an o_published flag. This is working until the object is published, after publishing always o_published is set true. I am not able to differentiate between those two operations.

How can able to achieve this? Can you help with this?

Thanks in advance.
Karthikeyan.B