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

Throw Property does not exist error if value is null #7

Closed
razorsharpshady opened this issue Feb 11, 2019 · 2 comments
Closed

Throw Property does not exist error if value is null #7

razorsharpshady opened this issue Feb 11, 2019 · 2 comments

Comments

@razorsharpshady
Copy link

razorsharpshady commented Feb 11, 2019

ORM throws Property does not exist error if property's value is null in database.
I think you should add key exists check in function __get($name) of Model.php (line 1351 & 1355) instead of isset.
error
BTW you did a really good job with this Project.

@yidas
Copy link
Owner

yidas commented Feb 11, 2019

Hi @razorsharpshady,

Thank you for your great advice!

This issue has been fixed in the version 2.12.1.

Cheers!
Nick Tsai

@razorsharpshady
Copy link
Author

That was quick, Thanks for the fix.

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