1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-22 10:16:02 +02:00

improved reflection skills

This commit is contained in:
David Grudl
2008-10-28 01:03:50 +00:00
parent e221a13dda
commit ab892255d3
15 changed files with 242 additions and 140 deletions

View File

@@ -147,9 +147,7 @@ abstract class DibiTable extends DibiObject
'INSERT INTO %n', $this->name, '%v', $this->prepare($data)
);
if ($this->primaryAutoIncrement) {
return $this->connection->insertId();
}
return $this->primaryAutoIncrement ? $this->connection->insertId() : NULL;
}