This commit is contained in:
cornernote 2015-08-11 21:07:47 +09:30
parent f4bc59df63
commit 0b099e17d5
2 changed files with 21 additions and 0 deletions

View File

@ -38,6 +38,18 @@ Run migrations:
heroku run php /app/yii migrate/up --interactive=0
```
Bash:
```
heroku run bash
```
Bash with vim
```
heroku vim
```
View database:
```

View File

@ -99,4 +99,13 @@ class ModController extends Controller
throw new NotFoundHttpException('The requested page does not exist.');
}
}
public function actionTest()
{
$model = Package::find()->where(['name' => 'skyblock'])->one();
$model->harvestModInfo();
print_r($model->getDirtyAttributes());
die;
}
}