Added fromAttributeOnEntity method