Phalcon MySQL UPDATE not working
<p>I am trying to create RESTful API and I am trying to update my MySQL database row through Phalcon via pure queries. But I run into the issue that the query is runned Phalcon <code>status-&gt;success()</code> returns true but when I look into the db values are the same as before.</p>

<p>I tried to change from SQL queries to using <code>model-&gt;update()</code> but has the same issue. Both values <code>country_id</code> and <code>university_id</code> are integers.</p>

<p>Any clue or workaround? </p>

<p>My POST handling function:      </p>

<pre><code>$app-&gt;post("/api/user/university/{id:[0-9]+}", function($id) use ($app){

    $university_id = $app-&gt;request-&gt;getPost("university_id");

    $country_id = universities::findFirstById($university_id)-&gt;country_id;

    $phpql = "UPDATE users 
                SET university_id=:university_id:,
                    country_id=:country_id:
                WHERE 
                    id=:user_id:";

    $status = $app-&gt;modelsManager-&gt;executeQuery($phpql, array(
        'user_id' =&gt; $id,
        'university_id' =&gt; $university_id,
        'country_id' =&gt; $country_id     
    ));


    $response = new Response();

    if($status-&gt;success() == true){
        $response-&gt;setStatusCode(201, "Created");


        $response-&gt;setJsonContent(
            array(
                'status' =&gt; 0
            )
        );
    } else {

        $response-&gt;setStatusCode(409, "Conflict");

        $errors = array();
        foreach ($status-&gt;getMessages() as $message) {
            $errors[] = $message-&gt;getMessage();
        }

        $response-&gt;setJsonContent(
            array(
                'status'   =&gt; 'ERROR',
                'messages' =&gt; $errors
            )
        );
    }
    return $response;
});
</code></pre>