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

Fixed Model Generator to support abstract baseClass #365

Merged
merged 4 commits into from
Jun 12, 2018

Conversation

rhertogh
Copy link
Contributor

Checks if baseClass is an abstract class, and if so wrap it in a regular class before instantiating it.

Q A
Is bugfix? yes
New feature? no
Breaks BC? no
Tests pass? yes
Fixed issues #327 "Cannot instantiate abstract class common\models\AbstractActiveRecord"

Fixes yiisoft#327
Checks if baseClass is an abstract class, and if so wrap it in a regular class before instantiating it.
Copy link
Member

@samdark samdark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a line for CHANGELOG.

@rhertogh
Copy link
Contributor Author

@samdark fixed

Removed obsolete class_exists check since ReflectionClass already checks if class exists.
@rhertogh
Copy link
Contributor Author

I've removed the redundant class_exists check from the original pull request since ReflectionClass already checks if class exists.

@samdark samdark added this to the 2.0.8 milestone May 23, 2018
@samdark samdark added type:bug Bug status:to be verified Needs to be reproduced and validated. labels May 23, 2018
@samdark samdark requested a review from a team May 23, 2018 22:48
@samdark samdark merged commit ee4d072 into yiisoft:master Jun 12, 2018
@samdark
Copy link
Member

samdark commented Jun 12, 2018

Merged. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants