can somebody help me with this error ? "Trying to get property of non object". The error points to lines were is asign user_name , password.....birthday
$app->post('/myapi/users', function () use ($app) {
$user = $app->request->getJsonRawBody();
$phql = "INSERT INTO Users (user_name, password, gender, screen_name, birthday) VALUES (:user_name:, :password:, :gender:,:screen_name:,:birthday:)";
$status = $app->modelsManager->executeQuery($phql, array(
'user_name' => $user->user_name,
'password' => $user->password,
'gender' => $user->gender,
'screen_name' => $user->screen_name,
'birthday' => $user->birthday
));