public function toLdap(array $entry) { $toLdap = []; foreach ($entry as $attribute => $value) { $toLdap[$this->schema->getAttributeToLdap($attribute)] = $value; } return $toLdap; }