phpwebyii2gii

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


Solution

  • Try updating your model class after giving primary key.