For purchaselog, use get method not direct property access
Purchase log id must be accessed through the get method