/** * @param BatchModifyOperation $operation * @return BatchModifyOperation */ protected function hydrateModifyOperation(BatchModifyOperation $operation) { $batches = $this->convertValuesToLdap($operation->getBatchCollection(), $operation->getDn()); foreach ($batches as $batch) { /** @var \LdapTools\BatchModify\Batch $batch */ $batch->setAttribute($this->schema->getAttributeToLdap($batch->getAttribute())); } return $operation; }