Skip to content

Instantly share code, notes, and snippets.

@allyraza
Created October 20, 2012 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allyraza/3922836 to your computer and use it in GitHub Desktop.
Save allyraza/3922836 to your computer and use it in GitHub Desktop.
<?php
public function afterSave() {
$model = new ChildModel();
$model->parendID = $this->id;
$model->save;
return parent::afterSave();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment