Permalink
Browse files

fix orm

  • Loading branch information...
yurikuzn committed Oct 10, 2017
1 parent a44a25f commit e77127e2d5576f139f10b052175b40f28c68b9cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 application/Espo/ORM/DB/Mapper.php
@@ -563,7 +563,7 @@ public function addRelation(IEntity $entity, $relationName, $id = null, $relEnti
if (!empty($data) && is_array($data)) {
$setArr = array();
foreach ($data as $column => $value) {
$setArr[] = $this->toDb($column) . " = " . $this->pdo->quote($value);
$setArr[] = $this->toDb($column) . " = " . $this->quote($value);
}
$setPart .= ', ' . implode(', ', $setArr);
}

0 comments on commit e77127e

Please sign in to comment.