src/Titon/Db/Repository.php
public function create($data, array $options = []) {
        return $this->query(Query::INSERT)->save($data, $options);
    }
public function create($data, array $options = []) {
        return $this->query(Query::INSERT)->save($data, $options);
    }
public function create ( $ data , array $ options = [ ] ) { return $ this -> query ( Query :: INSERT ) -> save ( $ data , $ options ) ; }
Insert data into the database as a new record.
If any related data exists, insert new records after joining them to the original record.
Validate schema data and related data structure before inserting.

@param array|\Titon\Type\Contract\Arrayable $data
@param array $options
@return int The record ID on success, 0 on failure
Insert data into the database as a new record . If any related data exists insert new records after joining them to the original record . Validate schema data and related data structure before inserting .