diff options
author | Simon Holywell <[email protected]> | 2016-12-14 14:43:46 +1000 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2016-12-14 14:43:46 +1000 |
commit | b648c4963b1164dfe88ce176835873e103c6921c (patch) | |
tree | 0a67e7b386405b72199f993543fc8eaa654dd81c | |
parent | 61863c1499b5b8bc5c9b99c7ecf06f78cc53f24b (diff) | |
parent | bd4bc89304f0cc72e6447b7581f2bb2f090106a9 (diff) |
Merge branch 'develop' of github.com:j4mie/idiorm into develop
-rw-r--r-- | idiorm.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2101,7 +2101,7 @@ // if the primary key is compound, assign the last inserted id // to the first column if (is_array($column)) { - $column = array_slice($column, 0, 1); + $column = reset($column); } $this->_data[$column] = $db->lastInsertId(); } |