[OE-3856] updated updateByPk() method to correctly specify the primary key.