mishamx / yii-user

Yii PHP Framework extension for registration and management users accounts.
http://yii-user.2mx.org/
186 stars 154 forks source link

Initial migration fails on --interactive=0 #30

Open schmunk42 opened 11 years ago

schmunk42 commented 11 years ago

If migrations are run with --interactive=0 you'll get an error here:

https://github.com/mishamx/yii-user/blob/master/migrations/m110805_153437_installYiiUser.php#L108

because $this->_model is not an object. Maybe just add

$this->_model = new User;

to avoid the error.

PS: Sorry for not sending in a pull request, maybe there's already one, but I just saw you merging today ;)