title: How do i append an auto increment primary key to another field in the same table?
body: <p>I'm using <em>yii active records for mysql</em>, and i have a table where there's a field that needs to be appended with the primary key of the same table. The primary key is an auto increment field, hence i can't access the primary key before saving.<br/></p>
  
  <pre><code>$model-&gt;append_field = "xyz".$model-&gt;id; // nothing is appending
  $model-&gt;save();
  $model-&gt;append_field = "xyz".$model-&gt;id; //id is now available
  </code></pre>
  
  <p>How do i do this?<br/>
  I know that i can update right after insertion, but is there a better method?</p>