classes/Persistence.php
public function save(){
    $table  = static::persistenceOptions('table');
    $op     = static::persistenceOptions();
    $cb     = static::persistenceSave();

    // Use standard persistence on DB layer
    $cb = $cb ? Closure::bind($cb, $this) : [$this,'persistenceSaveDefault'];
    return $cb($table,$op);
  }
public function save(){
    $table  = static::persistenceOptions('table');
    $op     = static::persistenceOptions();
    $cb     = static::persistenceSave();

    // Use standard persistence on DB layer
    $cb = $cb ? Closure::bind($cb, $this) : [$this,'persistenceSaveDefault'];
    return $cb($table,$op);
  }
public function save ( ) { $ table = static :: persistenceOptions ( 'table' ) ; $ op = static :: persistenceOptions ( ) ; $ cb = static :: persistenceSave ( ) ; // Use standard persistence on DB layer $ cb = $ cb ? Closure :: bind ( $ cb , $ this ) : [ $ this , 'persistenceSaveDefault' ] ; return $ cb ( $ table , $ op ) ; }
Save the model to the persistence layer
@return mixed The results from the save callback. (default: lastInsertID)
Save the model to the persistence layer