sgpatil / oriquent

Orientdb Eloquent driver for Laravel 5
MIT License
47 stars 15 forks source link

Boolean field not accept input are 1, 0, "1", and "0". #23

Open nambhd opened 8 years ago

nambhd commented 8 years ago

Hello, I created a Vertex has 'flag' property is boolean type. Then, I set $model->flag = 1; When I save this model, I received error: Value is not boolean. Expected true or false but received '1'. Please help me go out of this bug. Thank you!

pin-cnx commented 8 years ago

I though I fixed it already. try $model->flag = true;

nambhd commented 8 years ago

It worked fine when I create new Record. But when I update this record (set $model->flag = false;), I received this error again. Please check it.

nambhd commented 8 years ago

When I update boolean field with other value (Example: true -> false, or false -> true), I receive this error.