title: Sqlservice model.update() does not update the orm object but sessio.query().update() does
body: <p>I am using <code>sqlservice</code> orm which is essentially another wrapper over <code>sqlalchemy</code>. I am trying to update an object via three methods but one works and other two does not</p>
  <p>When I try below method it works and the row is updated in the database</p>
  <pre><code>model_obj = MyModel(col1=&quot;val1&quot;, col2=&quot;val2&quot;)
  try:
      db.session.add(model_obj)
      db.session.commit()
  except IntegrityError:
      db.session.rollback()
      db.session.query(MyModel).filter_by(col=model_obj.col).update({&quot;col2&quot;:&quot;val&quot;})
      db.session.commit()
  </code></pre>
  <p>However when I do the following, the operation goes through without any errors/warnings but db is not updated.</p>
  <pre><code>model_obj = MyModel(col1=&quot;val1&quot;, col2=&quot;val2&quot;)
  try:
      db.session.add(model_obj)
      db.session.commit()
  except IntegrityError:
      db.session.rollback()
      model_obj.col2 = &quot;val3&quot;    # or model_obj.update({{&quot;col2&quot;:&quot;val&quot;}})
      db.session.commit()
  </code></pre>
  <p>Am i missing something obvious here ?</p>