nineinchnick / yii2-usr

Yii framework module for user authentication, password reset, registration and profile updating. A port of yii-usr to Yii Framework 2.0.
http://demo2.niix.pl
MIT License
39 stars 8 forks source link

Possible incorrect use of ActiveRecord::find() method in forms #34

Closed sulim-vladimir closed 9 years ago

sulim-vladimir commented 10 years ago

uniqueIdentity() method of ProfileForm class uses parent class find() method which "creates an ActiveQuery instance for query purpose". http://www.yiiframework.com/doc-2.0/yii-db-activerecord.html

This means that the following expression $identityClass::find([$attribute => $this->$attribute]); should look like $identityClass::find()->where([$attribute => $this->$attribute])->one();

Please, advise. Thank you.

sulim-vladimir commented 10 years ago

Possible solution is to implement correct find() method in ExampleUser class.

nineinchnick commented 10 years ago

Thanks for reporting, the whole module is not up to date with the framework. I'll look into it.

rosimildo commented 9 years ago

Is there a time frame to get this project inline with Yii2 2.0.0 ? I've tried to get it working, but there are many interface changes ! Thanks.