I have three entities:
- Employer
- Employee
- Benefits
Benefit is child entity for Employer and Employee entities. It means both of these can cause creating a Benefit record and I m writing a plugin (which will run on Create of Benefit). Question is how in code I can check which entity among Employer and Employee causes creation of Benefit record ? I appreciate your help.