obuchmann / odoo-jsonrpc

PHP Odoo Json-RPC connector, prepared for laravel integration
MIT License
34 stars 11 forks source link

Documentation: CastHandler #3

Closed xewl closed 9 months ago

xewl commented 2 years ago

Occurred error:

Cannot assign string to property App\Foo\Bar\Odoo\ProductProduct::$createDate of type ?DateTime

From viewing the tests it quickly became apparent that I had to register the Cast before it worked.

\Obuchmann\OdooJsonRpc\Odoo::registerCast(new Odoo\Casts\DateTimeCast());

So not really an issue, merely a request to document later on :)

obuchmann commented 2 years ago

Good point. Unfortunately the documentation misses many features by now.

obuchmann commented 9 months ago

The documentation now covers the implemented casts and writing custom casts