O
O
Oleg Volodin2015-02-02 14:51:38
ORM
Oleg Volodin, 2015-02-02 14:51:38

How to fix this bug when accessing ORM?

Good afternoon!
There was a "weird error" when calling the code:

$user = User::where("USER_NAME", "=", "test") ->where("HASH_PASS", "=", "test") ->get( );

I am getting an error like:
SQLSTATE[HY000]: General error: -206 Dynamic SQL Error SQL error code = -206 Column unknown HASH_PASS At line 1, column 47 (SQL: select * from "V_USERS" where "USER_NAME" = test and "HASH_PASS" = 37693cfc748049e45d87b8c7d8b9aacd)

Has anyone encountered such a problem?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Brezhnev, 2015-02-02
@tratotui

The server complains about the absence of the HASH_PASS column in the V_USERS table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question