Skip to content

Commit

Permalink
fix orm
Browse files Browse the repository at this point in the history
  • Loading branch information
yurikuzn committed Oct 10, 2017
1 parent a44a25f commit e77127e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/Espo/ORM/DB/Mapper.php
Expand Up @@ -563,7 +563,7 @@ public function addRelation(IEntity $entity, $relationName, $id = null, $relEnti
if (!empty($data) && is_array($data)) { if (!empty($data) && is_array($data)) {
$setArr = array(); $setArr = array();
foreach ($data as $column => $value) { foreach ($data as $column => $value) {
$setArr[] = $this->toDb($column) . " = " . $this->pdo->quote($value); $setArr[] = $this->toDb($column) . " = " . $this->quote($value);
} }
$setPart .= ', ' . implode(', ', $setArr); $setPart .= ', ' . implode(', ', $setArr);
} }
Expand Down

0 comments on commit e77127e

Please sign in to comment.