protected function setupEntry(LdifEntryInterface $entry) { if (!is_null($entry->getType()) && $entry instanceof SchemaAwareInterface) { $entry->setLdapObjectSchema($this->getSchemaForType($entry->getType())); } if ($entry instanceof LdapAwareInterface) { $entry->setLdapConnection($this->connection); } $entry->setLineEnding($this->lineEnding); $entry->setLineFolding($this->lineFolding); $entry->setMaxLineLength($this->maxLineLength); }