81 public static function mergeData(array $insert, array $update)
83 $entity = static::getEntity();
84 $connection = $entity->getConnection();
85 $helper = $connection->getSqlHelper();
87 $sql = $helper->prepareMerge($entity->getDBTableName(), $entity->getPrimaryArray(), $insert, $update);
92 $connection->queryExecute($sql);
93 $entity->cleanCache();
106 if (!array_key_exists($fieldName, static::getMap()))
113 $fieldName => $increment,
118 $fieldName =>
new DB\
SqlExpression(
"?# + ?i", $fieldName, $increment),
121 static::mergeData($insert, $update);