class Model_Base extends \Orm\Model { public static function insert_multi($datum) { $table = static::table(); $columns = array_keys(static::properties()); $query = \DB::insert($table) ->columns($columns); foreach ($datum as $data) { $values = []; ($data instanceof \Orm\Model) and ($data = $data->to_array()); foreach ($columns as $col) { $values[] = (isset($data[$col])) ? $data[$col] : null; } $que