-
Notifications
You must be signed in to change notification settings - Fork 60
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
Group function closer to the original one #134
base: master
Are you sure you want to change the base?
Conversation
Made it more compatible with the original api
Made it more compatible with the original api
Update NumberDatum.php
Thanks for the PR @lexx27 . Sorry I haven't gotten around to looking at it yet. I'll try to do so before the next PHP-RQL release. |
@@ -9,13 +9,13 @@ class NumberDatum extends Datum | |||
{ | |||
public function encodeServerRequest() | |||
{ | |||
return (float)$this->getValue(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because all the numbers are saved as float. I couldn't save integers.
The group function had some problem with the arguments.
ex. the way arguments were passed was not like the js api
Also the "multi" option was ignored
I hope that my code is not total trash