src/MongoMinify/Collection.php
public function insert(&$data, array $options = array())
    {
        $document = new Document($data, $this);
        $insert = $document->insert($options);
        $data = $document->data;

        return $insert;
    }
public function insert(&$data, array $options = array())
    {
        $document = new Document($data, $this);
        $insert = $document->insert($options);
        $data = $document->data;

        return $insert;
    }
public function insert ( & $ data , array $ options = array ( ) ) { $ document = new Document ( $ data , $ this ) ; $ insert = $ document -> insert ( $ options ) ; $ data = $ document -> data ; return $ insert ; }
Insert new document
@param  [type] $document [description]
@param  array  $options  [description]
@return [type] [description]
Insert new document