schmunk42 / yii2-giiant

Yii 2 Framework Code Generator Gii on Steroids
271 stars 120 forks source link

include basic attributes from model generator into BatchController #215

Closed adipriyantobpn closed 6 years ago

adipriyantobpn commented 7 years ago

Current BatchController can not be used to set createdAtColumn and updatedAtColumn for useTimestampBehavior, as well as createdByColumn and updatedByColumn for useBlameableBehavior.

I just simply add those properties from schmunk42\giiant\generators\model\Generator into schmunk42\giiant\commands\BatchController

adipriyantobpn commented 7 years ago

Hi, Tobias..

I found that generateRelations attribute in schmunk42\giiant\generators\model\Generator is not mapped yet in BatchController, too.

I'll add addtitional commit ASAP.

adipriyantobpn commented 7 years ago

I also added getDb() function in model template as it was a feature since yii2-gii 2.0.0

schmunk42 commented 6 years ago

Thank you! ...and sorry for taking so long.

adipriyantobpn commented 6 years ago

that's ok. :)