src/Dev/FixtureFactory.php
public function createRaw($table, $identifier, $data)
    {
        $fields = array();
        foreach ($data as $fieldName => $fieldVal) {
            $fields["\"{$fieldName}\""] = $this->parseValue($fieldVal);
        }
        $insert = new SQLInsert("\"{$table}\"", $fields);
        $insert->execute();
        $id = DB::get_generated_id($table);
        $this->fixtures[$table][$identifier] = $id;

        return $id;
    }
public function createRaw($table, $identifier, $data)
    {
        $fields = array();
        foreach ($data as $fieldName => $fieldVal) {
            $fields["\"{$fieldName}\""] = $this->parseValue($fieldVal);
        }
        $insert = new SQLInsert("\"{$table}\"", $fields);
        $insert->execute();
        $id = DB::get_generated_id($table);
        $this->fixtures[$table][$identifier] = $id;

        return $id;
    }
public function createRaw ( $ table , $ identifier , $ data ) { $ fields = array ( ) ; foreach ( $ data as $ fieldName => $ fieldVal ) { $ fields [ "\"{$fieldName}\"" ] = $ this -> parseValue ( $ fieldVal ) ; } $ insert = new SQLInsert ( "\"{$table}\"" , $ fields ) ; $ insert -> execute ( ) ; $ id = DB :: get_generated_id ( $ table ) ; $ this -> fixtures [ $ table ] [ $ identifier ] = $ id ; return $ id ; }
Writes the fixture into the database directly using a database manipulation.
Does not use blueprints. Only supports tables with a primary key.

@param string $table Existing database table name
@param string $identifier Unique identifier for this fixture type
@param array $data Map of properties
@return int Database identifier
Writes the fixture into the database directly using a database manipulation . Does not use blueprints . Only supports tables with a primary key .