Questions tagged [yii2-giiant]
4 questions
2
votes
1 answer
How to disable generating controllers and views with CLI batch command for Giiant?
I am using the command line for generating models with giiant, like this:
yii batch
What do I put into the application configuration or command line options to disable generating views and controllers?
I tried looking at the source of…

gvlasov
- 18,638
- 21
- 74
- 110
1
vote
1 answer
yii2 via() vs viaTable()
I have this schema:
and this relation in model zwz:
public function getAuftrs() {
return $this->hasMany(\app\models\Auftr::className(), ['id' => 'auftr_id'])
->viaTable('znw', ['zwzx_id' => 'id'])
->viaTable('zwz_expl',…

user2511599
- 796
- 1
- 13
- 38
0
votes
0 answers
Yii2 override yii2-giiant
I have made some changes in yii2-giiant. When I'm updating yii2-giiant these changes are of course lost. How to extend yii2-giiant so that my changes remain in case of an update also? (I mean the extension should be basically updated)

user2511599
- 796
- 1
- 13
- 38
0
votes
1 answer
Is it possible to reference an existing ActiveRecord model from the classes generated with Gii?
There is an extension for Yii2 I'm using, and it provides a database table and an ActiveRecord model class to work with entities in that table. My other models are generated with Giiant. I want to reference the library model from my generated…

gvlasov
- 18,638
- 21
- 74
- 110