public function create($type)
{
if (!is_string($type) && !$type instanceof LdapObjectSchema) {
throw new InvalidArgumentException('You must either pass the schema object type as a string to this method, or pass the schema types ' . 'LdapObjectSchema to this method.');
}
if (!$type instanceof LdapObjectSchema) {
$type = $this->schemaFactory->get($this->connection->getConfig()->getSchemaName(), $type);
}
$this->schema = $type;
$this->container = $type->getDefaultContainer();
return $this;
}