Is it possible to get a model's name/identity from an instance of that model? I would like to be able to pass a model to a service and have that service perform an action on that model based on what type of model it is.
In lifecycle callbacks for example you can access the model identity with :
this.adapter.identity;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With