Skip to content

error when using 'fields' parameter #28

Description

@bigoper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions