wizardstechnologies / php-rest-api

A set of services to help you create beautiful REST APIs
3 stars 3 forks source link

Boolean type does not seems handled well #18

Open antoineangot opened 5 years ago

antoineangot commented 5 years ago

Hello,

This error appear when I name my boolean getter "isPrefered()" It works with "getIsPrefered()" which generate a warning with phpmd

[2019-04-24 15:54:27] php.CRITICAL: Call to undefined method App\Entity\Product::getIsPrefered() {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to undefined method App\\Entity\\Product::getIsPrefered() at .../vendor/wizards/rest-api/src/WizardsRest/ObjectReader/DoctrineAnnotationReader.php:115)"} []

BigZ commented 5 years ago

you can try to use the getter property of @embedabble