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

Removed redundant validity checks DI and ModelsManager in Mvc\Model. #11496

Merged
merged 1 commit into from
Mar 6, 2016
Merged

Removed redundant validity checks DI and ModelsManager in Mvc\Model. #11496

merged 1 commit into from
Mar 6, 2016

Conversation

SidRoberts
Copy link
Contributor

The DI and the Models Manager are set in the constructor so we don't need to check if they are objects. See https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/model.zep#L134 and https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/model.zep#L145.

sergeyklay added a commit that referenced this pull request Mar 6, 2016
…assignments

Removed redundant validity checks DI and ModelsManager in Mvc\Model.
@sergeyklay sergeyklay merged commit 7d53f2e into phalcon:2.0.x Mar 6, 2016
@sergeyklay
Copy link
Contributor

Thanks

@SidRoberts SidRoberts deleted the mvc-model-constructor-dupe-assignments branch March 10, 2016 12:50
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

Successfully merging this pull request may close these issues.

2 participants