safrazik / breeze.server.php

Breeze JS support for PHP applications
MIT License
29 stars 11 forks source link

Virtual foreign keys are not resolved when an association is a proxy instance. #5

Closed safrazik closed 9 years ago

safrazik commented 9 years ago

In JsonSerializationVisitor, the current implementation doesn't care about a proxy instance and any ReflectionException is suppressed.

Check for a getter and get the association, or get the parent class when it is an instance of Proxy.