hi
I have relation in existing table and also having data but these relations are not generating from table. I checked other tables too but 'has on’e and ‘has many’ relation not generating by gii tool. I use yii2.0.3. I dont use migration.
hi
I have relation in existing table and also having data but these relations are not generating from table. I checked other tables too but 'has on’e and ‘has many’ relation not generating by gii tool. I use yii2.0.3. I dont use migration.
Any one have idea?
For auto generating relation, you have to define the relations in database. If you do so then @ gii all the relation will be created. First check your database…
If you received any error please post the same…