Active
Project:
Multiversion
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2015 at 14:27 UTC
Updated:
20 Oct 2015 at 14:41 UTC
Jump to comment: Most recent
Resolve this todo in MultiversionManager.php
/**
* {@inheritdoc}
*
* @todo Consider using the nextId API to generate more sequential IDs.
* @see \Drupal\Core\Database\Connection::nextId
*/
public function newSequenceId() {
// Multiply the microtime by 1 million to ensure we get an accurate integer.
// Credit goes to @letharion and @logaritmisk for this simple but genius
// solution.
$this->lastSequenceId = (int) (microtime(TRUE) * 1000000);
return $this->lastSequenceId;
}
Comments
Comment #2
stevector