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

create/update->result->validations: different validate output #120

Closed
dmachehin opened this issue Aug 6, 2015 · 5 comments
Closed

create/update->result->validations: different validate output #120

dmachehin opened this issue Aug 6, 2015 · 5 comments

Comments

@dmachehin
Copy link

Different object result->validations output type

If call create method, i'm receive array[stdObject]: object(stdClass)#49 (3) { ["valid"]=> bool(false) ["message"]=> string(18) "Validation failed." ["field"]=> string(10) "first_name" }

If call update method, receive array[array]: array(3) { ["valid"]=> bool(false) ["message"]=> string(18) "Validation failed." ["field"]=> string(10) "first_name" }

c9s added a commit that referenced this issue Aug 7, 2015
@c9s
Copy link
Member

c9s commented Aug 7, 2015

Yeah that should be fixed.

@c9s
Copy link
Member

c9s commented Aug 7, 2015

Fixed in 03dab71

c9s added a commit that referenced this issue Aug 7, 2015
@c9s
Copy link
Member

c9s commented Aug 7, 2015

I've applied the patch on 2.2 branch.

@c9s
Copy link
Member

c9s commented Aug 7, 2015

It should return stdObject now.

@c9s c9s closed this as completed Aug 11, 2015
@c9s
Copy link
Member

c9s commented Aug 11, 2015

fixed

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