I have some resources with identifier $id = 0. This is currently not rendering correctly inside ZF\Hal\Plugin\Hal.
This is related to the createEntity method on line 751 in ZF\Hal\Plugin\Hal which should explicitly check if ($id === false) in the if clause on line 763 instead of the if($id). Right now the method wrongly returns an ApiProblem if the entity has $id = 0.
I have some resources with identifier $id = 0. This is currently not rendering correctly inside
ZF\Hal\Plugin\Hal
.This is related to the
createEntity
method on line 751 inZF\Hal\Plugin\Hal
which should explicitly checkif ($id === false)
in the if clause on line 763 instead of theif($id)
. Right now the method wrongly returns anApiProblem
if the entity has$id = 0
.Link to
ZF\Hal\Plugin\Hal:createEntity
: https://github.com/zfcampus/zf-hal/blob/master/src/Plugin/Hal.php#L751Also check related issue in zf-hal: https://github.com/zfcampus/zf-rest/issues/35