public function setSchema($schema)
    {
        if ($schema === $this->schema) {
            return;
        }

        $this->schema = $schema;
        if ($schema && !$this->package && $this->getBuildProperty('schemaAutoPackage')) {
            $this->package = $schema;
            $this->packageOverridden = true;
        }

        if ($schema && !$this->namespace && $this->getBuildProperty('generator.schema.autoNamespace')) {
            $this->namespace = $schema;
        }
    }
public function setSchema($schema)
    {
        if ($schema === $this->schema) {
            return;
        }

        $this->schema = $schema;
        if ($schema && !$this->package && $this->getBuildProperty('schemaAutoPackage')) {
            $this->package = $schema;
            $this->packageOverridden = true;
        }

        if ($schema && !$this->namespace && $this->getBuildProperty('generator.schema.autoNamespace')) {
            $this->namespace = $schema;
        }
    }
public function setSchema ( $ schema ) { if ( $ schema === $ this -> schema ) { return ; } $ this -> schema = $ schema ; if ( $ schema && ! $ this -> package && $ this -> getBuildProperty ( 'schemaAutoPackage' ) ) { $ this -> package = $ schema ; $ this -> packageOverridden = true ; } if ( $ schema && ! $ this -> namespace && $ this -> getBuildProperty ( 'generator.schema.autoNamespace' ) ) { $ this -> namespace = $ schema ; } }
Sets the schema name.

@param string $schema
Sets the schema name .