70 public static function mergeData(array $insert, array $update)
72 $entity = static::getEntity();
73 $connection = $entity->getConnection();
74 $helper = $connection->getSqlHelper();
76 $sql = $helper->prepareMerge($entity->getDBTableName(), $entity->getPrimaryArray(), $insert, $update);
81 $connection->queryExecute($sql);
82 $entity->cleanCache();