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
I am using Postgresql database, and things go wrong when I use a table name containing a schema.
This sequence of actions causes the bug:
I add the table name in the "Table Name" field (eg. my.newtable)
When the browser unfocusses from that field, a model name is automatically generated for the "Model Name" field, "My.newtable". But this generated name contains a period character, causing the error "Only word characters are allowed."
All is normal up to this point. Then, I remove the period character from the "Model Name" field, which causes the validation error to go away
When I then click the "preview" button, nothing happen except the browser scrolling up to the "Model Name" field. The (valid) form does not get submitted at all.
To work around this problem, I do the following:
Refresh the /gii/default/view?id=model view
Fill in the "Model Name" field first, so that it does not get autopoplated with the invalid period character from the table name. Thus, the validation error never triggers
Then I fill in the table name, and continue as usual
The quick fix is likely to strip out any periods in Gii's model Generator:generateClassName() method. It is generating model names which are invalid.
The text was updated successfully, but these errors were encountered:
I am using Postgresql database, and things go wrong when I use a table name containing a schema.
This sequence of actions causes the bug:
To work around this problem, I do the following:
The quick fix is likely to strip out any periods in Gii's model Generator:generateClassName() method. It is generating model names which are invalid.
The text was updated successfully, but these errors were encountered: