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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user