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

Alias names not used in Included key #3

Open
davedriesmans opened this issue Aug 22, 2016 · 0 comments
Open

Alias names not used in Included key #3

davedriesmans opened this issue Aug 22, 2016 · 0 comments
Labels

Comments

@davedriesmans
Copy link

You can create an alias like this

public function getAliasedProperties()
{
        return [
            'dbkey'       => 'jsonkey',
}

the json attributed will show jsonkey. perfect.

Only when you have a relationship the included key will still show dbkey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants