Copied! Copy Stacktrace Search Stackoverflow Search Google Exception

Integrity constraint violationyii\db\IntegrityException

SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "user_id" of relation "content_ratio" violates not-null constraint
DETAIL: Failing row contains (app\models\content\Song, s:5:"34036";, null, 1, 1710857046).
The SQL being executed was: INSERT INTO "content_ratio" ("class_name", "class_id", "user_id", "vote", "time") VALUES ('app\models\content\Song', 's:5:"34036";', NULL, 1, 1710857046) RETURNING "class_name", "class_id", "user_id"

Error Info: Array
(
    [0] => 23502
    [1] => 7
    [2] => ERROR:  null value in column "user_id" of relation "content_ratio" violates not-null constraint
DETAIL:  Failing row contains (app\models\content\Song, s:5:"34036";, null, 1, 1710857046).
)
$_GET = [
    'id' => '34036',
];

$_SESSION = [
    '__flash' => [],
];