public function update()
{
$modifications = $this->getModifications();
if (count($modifications) > 0) {
// Push the update.
if ($this->query->getConnection()->modifyBatch($this->getDn(), $modifications)) {
// Re-sync attributes.
$this->syncRaw();
return true;
}
// Modification failed, return false.
return false;
}
// We need to return true here because modify batch will
// return false if no modifications are made
// but this may not always be the case.
return true;
}