public function setSchema(Schema $schema)
    {
        $this->schema = $schema;

        if (!$this->getSchema()->hasTable($this->getName())) {
            $this->getSchema()->addTable($this);
        }
    }
public function setSchema(Schema $schema)
    {
        $this->schema = $schema;

        if (!$this->getSchema()->hasTable($this->getName())) {
            $this->getSchema()->addTable($this);
        }
    }
public function setSchema ( Schema $ schema ) { $ this -> schema = $ schema ; if ( ! $ this -> getSchema ( ) -> hasTable ( $ this -> getName ( ) ) ) { $ this -> getSchema ( ) -> addTable ( $ this ) ; } }
Sets the table schema.

@param \Fridge\DBAL\Schema\Schema $schema The table schema.
Sets the table schema .