protected function create()
    {
        $this->checkDb();
        $properties = $this->getProperties();
        unset($properties[$this->tableIdColumn]);
        $columns = array_keys($properties);
        $values  = array_values($properties);

        $this->db->connect()
                 ->insert($this->tableName, $columns)
                 ->execute($values);

        $this->{$this->tableIdColumn} = $this->db->lastInsertId();
    }
protected function create()
    {
        $this->checkDb();
        $properties = $this->getProperties();
        unset($properties[$this->tableIdColumn]);
        $columns = array_keys($properties);
        $values  = array_values($properties);

        $this->db->connect()
                 ->insert($this->tableName, $columns)
                 ->execute($values);

        $this->{$this->tableIdColumn} = $this->db->lastInsertId();
    }
protected function create ( ) { $ this -> checkDb ( ) ; $ properties = $ this -> getProperties ( ) ; unset ( $ properties [ $ this -> tableIdColumn ] ) ; $ columns = array_keys ( $ properties ) ; $ values = array_values ( $ properties ) ; $ this -> db -> connect ( ) -> insert ( $ this -> tableName , $ columns ) -> execute ( $ values ) ; $ this -> { $ this -> tableIdColumn } = $ this -> db -> lastInsertId ( ) ; }
Create new row.

@return void
Create new row .