Skip to content

Better handling of populated fields #3

Description

@FloGou

When an object is saved, we try to update it with the values returned by the query. Unfortunately, this query doesn't offer the opportunity to populate nested objects in the returned object (or so it seems).

Currently, you can pass an array of strings to the save method, and the ORM will GET the object again.

A better solution would be to maintain a _populate array on the object, and implement a refresh method.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions