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

Getting unknown property exception thrown. #4

Open
soap opened this issue Aug 4, 2016 · 5 comments
Open

Getting unknown property exception thrown. #4

soap opened this issue Aug 4, 2016 · 5 comments

Comments

@soap
Copy link

soap commented Aug 4, 2016

When I use QueryScopeBahavior in my module's model class. I got the following error.

Getting unknown property: frontend\modules\product\models\ProductSearch::modelClass

In D:\yii2\soap\xorders\vendor\yiisoft\yii2\base\Component.php.

My environment is PHP5.5 and Yii2.0.9 Windows 10.

Any recommendation? Thanks in advance.

@mdmunir
Copy link
Contributor

mdmunir commented Aug 4, 2016

when you not using QueryScopeBahavior, is it going ok?

@soap
Copy link
Author

soap commented Aug 4, 2016

Yes, it happen in the method hasMethod() of QueryScopeBehavior

@mdmunir
Copy link
Contributor

mdmunir commented Aug 4, 2016

QueryScopeBehavior only work for ActiveRecord.

@soap
Copy link
Author

soap commented Aug 5, 2016

Yes, I know that. But ProductSearch is extended from Product which is inherited from ActiveRecord.

@mdmunir
Copy link
Contributor

mdmunir commented Aug 5, 2016

I mean ActiveQuery.

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