private function create($model)
    {
        $attrs = $this->getMutableAttributes($model);
        $this->db
            ->connect()
            ->insert($this->table, array_keys($attrs))
            ->execute(array_values($attrs));
        $model->{$this->key} = $this->db->lastInsertId();
    }
private function create($model)
    {
        $attrs = $this->getMutableAttributes($model);
        $this->db
            ->connect()
            ->insert($this->table, array_keys($attrs))
            ->execute(array_values($attrs));
        $model->{$this->key} = $this->db->lastInsertId();
    }
private function create ( $ model ) { $ attrs = $ this -> getMutableAttributes ( $ model ) ; $ this -> db -> connect ( ) -> insert ( $ this -> table , array_keys ( $ attrs ) ) -> execute ( array_values ( $ attrs ) ) ; $ model -> { $ this -> key } = $ this -> db -> lastInsertId ( ) ; }
Create new entry.

@param mixed $model  Model instance.
Create new entry .