LdapTools\DomainConfiguration::setSchemaName PHP Method

setSchemaName() public method

Set the schema name to use for this domain.
public setSchemaName ( string $schemaName )
$schemaName string
    public function setSchemaName($schemaName)
    {
        $this->config['schemaName'] = $schemaName;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 function it_should_error_when_calling_getRepository_for_a_type_that_does_not_exist()
 {
     $this->config->setSchemaFolder(__DIR__ . '/../resources/schema');
     $this->domain->setSchemaName('example');
     $this->beConstructedWith($this->config);
     $this->shouldThrow(new \RuntimeException('Unable to load Repository for type "foo": Cannot find object type "foo" in schema.'))->duringGetRepository('foo');
     $this->shouldThrow(new \RuntimeException('Unable to load Repository for type "user": Repository class "\\Foo\\Bar" not found.'))->duringGetRepository('user');
 }
All Usage Examples Of LdapTools\DomainConfiguration::setSchemaName