You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a table with name starts with "id" in which one of the fields will be joined by a foreign key with predefined User (ActiveRecord) - i use the advanced template.
In Gii, generate a model for table user.
What steps will reproduce the problem?
Create a table with name starts with "id" in which one of the fields will be joined by a foreign key with predefined
User
(ActiveRecord) - i use the advanced template.In Gii, generate a model for table
user
.My test DB dump (PostgreSQL!): gii-issue.zip
Alternatively, the migration file to a clean DB: m130524_201442_init.zip
What's expected?
It is not expected to trim "id" from the function name.
In the below example it should by:
What do you get instead?
Ex. function of the relationship:
Additional info
Probably the responsible code:
yii2-gii/src/generators/model/Generator.php
Line 690 in 01883a8
The text was updated successfully, but these errors were encountered: