Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nambhd opened this issue Jun 21, 2016 · 3 comments
Open

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

nambhd opened this issue Jun 21, 2016 · 3 comments

Comments

@nambhd
Copy link
Contributor

nambhd commented Jun 21, 2016

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
Copy link
Contributor

pin-cnx commented Jun 21, 2016

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

@nambhd
Copy link
Contributor Author

nambhd commented Jun 21, 2016

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
Copy link
Contributor Author

nambhd commented Jun 21, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants