lithium\data\Schema::merge PHP 메소드

merge() 공개 메소드

Merges another Schema object into the current one.
public merge ( object $schema ) : void
$schema object Another `Schema` class object to be merged into the current one. If this schema contains field names that conflict with existing field names, the existing fields will not be overwritten.
리턴 void
    public function merge($schema)
    {
        if ($this->_locked) {
            throw new RuntimeException("Schema cannot be modified.");
        }
        $this->_fields += $schema->fields();
    }