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

yii2 update recently broke models? #9

Closed
youanden opened this issue May 18, 2014 · 2 comments
Closed

yii2 update recently broke models? #9

youanden opened this issue May 18, 2014 · 2 comments

Comments

@youanden
Copy link

I've been scratching my head for a bit wondering why my show view returned an empty result set (and thus raising an UnknownPropertyException on the $model object.

It appears that this line (Class::find($id)) does not send an sql request (and also does not return null) until the method one is called on it like so:

Class::find($id)->one()

@schmunk42
Copy link
Owner

Thanks for reporting this. We'll have to review the source-code after the latest changes.
Hopefully we can address this in the next two weeks.

@schmunk42
Copy link
Owner

fixed

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

2 participants