dewinataria
dewinataria

Reputation: 97

why cant I generate with gii in Yii2?

I made the view table with function "join" in sql. but when I try to generate the view table with gii, it was said that "Table associated with Rangkuman must have primary key", and I have made primary key with table that associated with Rangkuman. What should I do? Thank you so much

Here is my picture enter image description here

Upvotes: 0

Views: 78

Answers (1)

Dipendra
Dipendra

Reputation: 116

Try updating your model class after giving primary key.

Upvotes: 2

Related Questions