[eluser]robertcsmith[/eluser]
@tdtank
Without diving into it too much something is amuck with autotransactions as turning it off in the datamapper config using similar models worked perfectly
controller
Code:
$b = new Brainstorm();
$b->short_desc = "test1";
$b->long_desc = "a long description";
$b->priority = 1;
$b->est_count_total = 77;
$b->status = 1;
$b->origin_date = now();
$it = new Issue_type();
$it->where('id', 2)->get();
$b->save($it);
var_dump($b);
A Debug shows that DataMapper line 614
Code:
$this->id = $this->db->insert_id();
which uses the new mysql_driver.php insert_id method on line 310
returns an id of 0
but with the config set to false it properly returns the id of the newly created record
so yeah... something is amuck in the driver i think?