php - yii2 is querying from a wrong table name when login -


I have a database with table users that contains user names and passwords and other information, I have successfully updated my database Connecting the yii2 project was able to get some data, but when I try to log in using the username and password present in host users, then yiiDebugger gives me the exception Confirms:

  database exception ??? Yii \ db \ Exception SQLSTATE [42P01]: Undefined Table: 7 Error: The relationship "user" does not exist LINE 1: SELECT * FROM "user" WHERE ("user name" = $ 1) and ("status" = $ 2 )   

I have the name of the table of users, but this user appears in the query how can I fix this?

Have you changed your name? Check the model method table ()

  class user extended \ yii \ db \ ActiveRecord {public static function filename () {return 'user'; }}    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -