Adding support for custom model attribute to be used for entityfk.