src/Norm/Connection/OCIConnection.php
public function insert($collectionName, $data)
    {
        $id = 0;
        $sql = $this->dialect->grammarInsert($collectionName, $data);

        $stid = oci_parse($this->raw, $sql);

        //Fixme : problem from other oracle dialect on method insert
        oci_bind_by_name($stid, ":id", $id,-1,SQLT_INT);

        foreach ($data as $key => $value) {
            oci_bind_by_name($stid, ":".$key, $data[$key]);
        }

        oci_execute($stid);

        oci_free_statement($stid);

        return $id;
    }
public function insert($collectionName, $data)
    {
        $id = 0;
        $sql = $this->dialect->grammarInsert($collectionName, $data);

        $stid = oci_parse($this->raw, $sql);

        //Fixme : problem from other oracle dialect on method insert
        oci_bind_by_name($stid, ":id", $id,-1,SQLT_INT);

        foreach ($data as $key => $value) {
            oci_bind_by_name($stid, ":".$key, $data[$key]);
        }

        oci_execute($stid);

        oci_free_statement($stid);

        return $id;
    }
public function insert ( $ collectionName , $ data ) { $ id = 0 ; $ sql = $ this -> dialect -> grammarInsert ( $ collectionName , $ data ) ; $ stid = oci_parse ( $ this -> raw , $ sql ) ; //Fixme : problem from other oracle dialect on method insert oci_bind_by_name ( $ stid , ":id" , $ id , - 1 , SQLT_INT ) ; foreach ( $ data as $ key => $ value ) { oci_bind_by_name ( $ stid , ":" . $ key , $ data [ $ key ] ) ; } oci_execute ( $ stid ) ; oci_free_statement ( $ stid ) ; return $ id ; }
Perform insert new document to database.

@param string $collectionName
@param mixed $data

@return bool
Perform insert new document to database .