phly / PhlyRestfully

ZF2 module for creating RESTful JSON APIs using HAL and API-Problem
108 stars 45 forks source link

Add magic method __isset method to HalResource #126

Closed Wilt closed 8 years ago

Wilt commented 10 years ago

To be able to use the isset function in the getIdFromResource method (line 154 in HalLinks) there needs to be a magic __isset method inside the HalResource. Right now the isset always returns false even if the 'id' is set in $resource. This can be considered a bug.