Fixed #148 ORM: Can't use 'joins' when override primaryKeyFieldName