src/Utipd/MysqlModel/BaseMysqlDirectory.php
public function createAndSave($create_vars=[]) {
        // build new object
        $new_model = $this->create($create_vars);

        // save it to the database
        $model = $this->save($new_model);

        return $model;
    }
public function createAndSave($create_vars=[]) {
        // build new object
        $new_model = $this->create($create_vars);

        // save it to the database
        $model = $this->save($new_model);

        return $model;
    }
public function createAndSave ( $ create_vars = [ ] ) { // build new object $ new_model = $ this -> create ( $ create_vars ) ; // save it to the database $ model = $ this -> save ( $ new_model ) ; return $ model ; }
creates a new model
@param  array  $create_vars
@return BaseMysqlModel a new model
creates a new model