This commit is contained in:
ahwelp
2019-03-28 14:06:31 +00:00
parent 75c82cde78
commit cdfc24646c
+2 -2
View File
@@ -74,7 +74,7 @@ abstract class Entity {
$update_data['_update_id'] = $this->id;
foreach ($columns as $column) {
$update_string .= $column . ":$column, ";
$update_string .= $column . " = :$column, ";
$update_data[$column] = $obj[$column];
}
@@ -96,7 +96,7 @@ abstract class Entity {
$first_argument .= $column . ', ';
$insert_data[$column] = $obj[$column];
$second_argument .= ":$column, ";
$second_argument .= " = :$column, ";
}
$first_argument = rtrim($first_argument, ', ');