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

error when using 'fields' parameter #28

Closed
bigoper opened this issue Mar 31, 2017 · 1 comment
Closed

error when using 'fields' parameter #28

bigoper opened this issue Mar 31, 2017 · 1 comment

Comments

@bigoper
Copy link

bigoper commented Mar 31, 2017

When using the 'fields' parameter I'm getting an error.

  1. This is the error:
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$PropertyType in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$5thBedroomDimensions in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$ZipCode in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$ZipCodeLast4Digits in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$CoListingAgentName in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$AgentsOfficeExtension in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$AgentPhone in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129
    Notice: Undefined property: Phalcon\Mvc\Model\Row::$Area in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129 Notice: Undefined property: Phalcon\Mvc\Model\Row::$AssocFeePaidPer in /var/app/current/vendor/redound/phalcon-rest/src/PhalconRest/Transformers/ModelTransformer.php on line 129

the mentioned error repeats it self all over the page, but with diff 'property'.
?fields=known_field
2. when entering a non exist value in the 'fields' param, I'm getting an 'OK' error. (expected)
?fields=un_known_value
3. when entering an unknown type of 'param', I'm getting an 'OK' error (expected)
?un_known_fields=value

I need to resolve issue 1.

Thanks,
A.I

@bigoper
Copy link
Author

bigoper commented Apr 21, 2017

Solved by #29
Thanks!

@bigoper bigoper closed this as completed Apr 21, 2017
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