modul-is / orm

Simple lightweight ORM
11 stars 0 forks source link

Entity ->toArray() converts property to null #17

Closed vodictomas closed 2 years ago

vodictomas commented 2 years ago

if I have Entity property eg.

public float $number

fill it with value

0.0

and then call

$entity->toArray()['number']

result is

null

same happens with type string and value ''