src/mako/database/midgard/ORM.php
public static function create(array $columns = [], bool $raw = false, bool $whitelist = true)
	{
		$model = new static($columns, $raw, $whitelist);

		$model->save();

		return $model;
	}
public static function create(array $columns = [], bool $raw = false, bool $whitelist = true)
	{
		$model = new static($columns, $raw, $whitelist);

		$model->save();

		return $model;
	}
public static function create ( array $ columns = [ ] , bool $ raw = false , bool $ whitelist = true ) { $ model = new static ( $ columns , $ raw , $ whitelist ) ; $ model -> save ( ) ; return $ model ; }
Creates a new record and returns the model.

@param  array  $columns   Column values
@param  bool   $raw       Set raw values?
@param  bool   $whitelist Remove columns that are not in the whitelist?
@return static
Creates a new record and returns the model .