openactive / models-php

PHP Models for the OpenActive Opportunity and Booking Specifications
MIT License
6 stars 8 forks source link

RpdeBody::serialize doesn't work #59

Closed loalf closed 4 years ago

loalf commented 4 years ago

When trying to use RpdeBody::serialize it fails throwing the following exception:

Attempted to call an undefined method named "defineProperty" of class "OpenActive\Rpde\RpdeBody".

Stack trace:

Exception trace:
  at ../vendor/openactive/models/src/Concerns/Serializer.php:65
 ...
nathansalter commented 4 years ago

Thanks for reporting this, it looks like this method is missing when the deserialize method is being called. I'll have a look into it.