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;
}