Phactory\Mongo\Blueprint::create PHP Method

create() public method

* Create document in the database and return it.
public create ( $overrides = [], $associated = [] )
$overrides field => value pairs which override the defaults for this blueprint
$associated [name] => [Association] pairs
    public function create($overrides = array(), $associated = array())
    {
        $data = $this->build($overrides, $associated);
        $this->_collection->insert($data, array("safe" => true));
        return $data;
    }