Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Query on nested Arrays #33

@klopez0017

Description

@klopez0017

Hi, I have this saved database with me in this format. As you can see accounts have multiple array elements containing accID, server, expiry, editable, payment, etc..
Whenever I try to use query it gives me no results. Is nested multi array supported at the moment?

$query5 = $db_List->query()->where('accounts.accID', '=', '123')->results();
echo var_dump($query5);
{
    "__created_at": 1541705828,
    "__updated_at": 1541706169,
    "data": {
        "accounts": [
            {
                "accID": "123",
                "server": "TEST",
                "expiry": 100,
                "editable": 200,
                "payment": "x",
                "parent_payment": "y",
                "notes": "z"
            },
            {
                "accID": "456",
                "server": "TEST",
                "expiry": 100,
                "editable": 200,
                "payment": "-",
                "parent_payment": "-",
                "notes": "Coco"
            }
        ],
        "username": "TEST",
        "password": "HASH",
        "email": "test@telus.com",
        "blocked": false
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions