Skip to content

ArraySource find empty records #83

@ghost

Description

Created by Gallagher, 30th Nov 2012. (originally Lighthouse ticket #45):


If you do a find on a model which uses ArraySource datasource and the Model::records property is empty, then the returned value is something like:
array(
'Model' => array()
)
Whereas I think the returned value should be:
array()
If you want I can fix this myself, add a test and create a pull request, but I am wondering is there a situation (maybe when the model is a related model) where it should return the value which it does or is it just plan incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions