fixed #1028, if param is numeric call findByPrimaryKey function