Skip to content

Commit

Permalink
Return rowClass from insert (thanks to Bastien)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jul 27, 2011
1 parent 17e319d commit d5d9481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NotORM/Result.php
Expand Up @@ -222,7 +222,7 @@ function insert($data) {
if (!isset($data[$this->primary]) && ($id = $this->notORM->connection->lastInsertId($this->notORM->structure->getSequence($this->table)))) {
$data[$this->primary] = $id;
}
return new NotORM_Row($data, $this);
return new $this->notORM->rowClass($data, $this);
}

/** Update all rows in result set
Expand Down

0 comments on commit d5d9481

Please sign in to comment.