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

Relations: why result relations is lowercase? #1147

Closed
nizsheanez opened this issue Nov 6, 2013 · 1 comment
Closed

Relations: why result relations is lowercase? #1147

nizsheanez opened this issue Nov 6, 2013 · 1 comment
Assignees

Comments

@nizsheanez
Copy link

$model = Goal::find()->asArray()->with('reportToday')->one();
print_r($model);

//result
Array
(
    [id] => 1
    [reporttoday] => Array
        (
            [id] => 10
            [create_time] => 1383737582
        )
)

I think must be reportToday instead of reporttoday?

@ghost ghost assigned qiangxue Nov 6, 2013
@cebe
Copy link
Member

cebe commented Nov 6, 2013

dupliacte of #1125

@cebe cebe closed this as completed Nov 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants