52 public static function mergeData(array $insert, array $update)
54 $entity = static::getEntity();
55 $connection = $entity->getConnection();
56 $helper = $connection->getSqlHelper();
58 $sql = $helper->prepareMerge($entity->getDBTableName(), $entity->getPrimaryArray(), $insert, $update);
63 $connection->queryExecute($sql);
64 $entity->cleanCache();