This commit is contained in:
parent
571115cf18
commit
d2be4a2b48
@ -76,7 +76,7 @@ class SequenceGenerator extends AbstractIdGenerator implements Serializable
|
|||||||
$conn = $em->getConnection();
|
$conn = $em->getConnection();
|
||||||
$sql = $conn->getDatabasePlatform()->getSequenceNextValSQL($this->_sequenceName);
|
$sql = $conn->getDatabasePlatform()->getSequenceNextValSQL($this->_sequenceName);
|
||||||
|
|
||||||
// Use query to force master in MasterSlaveConnection
|
// Using `query` to force usage of the master server in MasterSlaveConnection
|
||||||
$this->_nextValue = (int) $conn->query($sql)->fetchColumn();
|
$this->_nextValue = (int) $conn->query($sql)->fetchColumn();
|
||||||
$this->_maxValue = $this->_nextValue + $this->_allocationSize;
|
$this->_maxValue = $this->_nextValue + $this->_allocationSize;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user