src/Titon/Model/Model.php
public static function create(array $data, array $options = []) {
        /** @type \Titon\Model\Model $model */
        $model = new static();
        $model->fill($data);

        if ($model->save($options)) {
            return $model;
        }

        return null;
    }
public static function create(array $data, array $options = []) {
        /** @type \Titon\Model\Model $model */
        $model = new static();
        $model->fill($data);

        if ($model->save($options)) {
            return $model;
        }

        return null;
    }
public static function create ( array $ data , array $ options = [ ] ) { /** @type \Titon\Model\Model $model */ $ model = new static ( ) ; $ model -> fill ( $ data ) ; if ( $ model -> save ( $ options ) ) { return $ model ; } return null ; }
Create a new model instance, fill with data, and attempt to save.
Return the model instance on success, or a null on failure.

@see \Titon\Db\Repository::create()

@param array $data
@param array $options
@return \Titon\Model\Model
Create a new model instance fill with data and attempt to save . Return the model instance on success or a null on failure .