[eluser]OverZealous[/eluser]
OK, looked into it some more. Sorry about the confusion, I don't use auto-transactions, so I misunderstood what is happening.
It is definitely a bug of sorts. The 'transaction' error message is only set if the transaction itself fails (which it never should, unless something really bad is happening on the server!)
To work around it, you should check to see if the transaction error has been set:
Code:
if(isset($obj->error->transaction)) {
// show transaction error
}
You could also fix this by adding this line into the DataMapper souce:
Code:
// around line 1015
}
$this->error->transaction = ''; // <<< Add This Line
// Clear this objects "has many" related objects
foreach ($this->has_many as $related)
I'll add a fix into my testing copy of DataMapper that I am working on.