title: How to get id new record in yii createCommand?
body: <p>How to get id new record in yii createCommand?
  i try this </p>
  
  <pre><code>$insert = Yii::app()-&gt;db-&gt;createCommand("INSERT INTO {$tableName}(the_geom) values(ST_GeomFromText('{$cordinate}'));")-&gt;query();
  </code></pre>
  
  <p>and i add code</p>
  
  <pre><code>$insert_id = Yii::app()-&gt;db-&gt;getLastInsertID($insert);
  </code></pre>
  
  <p>the result is an error, please help me..</p>