add the ability to set the fieldname used to get the entity by (default ...

...= id)
Field parameter is deprecated, update the phpdoc