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

Adding required attribute. Causes an error #118

Open
patayko opened this issue Feb 15, 2017 · 1 comment
Open

Adding required attribute. Causes an error #118

patayko opened this issue Feb 15, 2017 · 1 comment

Comments

@patayko
Copy link

patayko commented Feb 15, 2017

MappingException in MappingFactory.php line 302:
Could not add required property 0 in class App\Booking because it does not exist.

Based on the code on MappingFactory.php line 302 the keys of the array was used to conditions making the values ignored and a value 0 was tested causing an exception.

@patayko
Copy link
Author

patayko commented Feb 15, 2017

example:

Valid
["note" => "note",
"status" => "status",
"reservation" => "reservation",]

Cause Error
["note",
"status",
"reservation" ]

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

1 participant