public function setProperties(array $properties)
    {
        foreach ($properties as $property => $value) {
            $method = sprintf('set%s', str_replace('_', '', $property));

            if (!method_exists($this, $method)) {
                 throw SchemaException::invalidColumnProperty($this->getName(), $property);
            }

            $this->$method($value);
        }
    }
public function setProperties(array $properties)
    {
        foreach ($properties as $property => $value) {
            $method = sprintf('set%s', str_replace('_', '', $property));

            if (!method_exists($this, $method)) {
                 throw SchemaException::invalidColumnProperty($this->getName(), $property);
            }

            $this->$method($value);
        }
    }
public function setProperties ( array $ properties ) { foreach ( $ properties as $ property => $ value ) { $ method = sprintf ( 'set%s' , str_replace ( '_' , '' , $ property ) ) ; if ( ! method_exists ( $ this , $ method ) ) { throw SchemaException :: invalidColumnProperty ( $ this -> getName ( ) , $ property ) ; } $ this -> $ method ( $ value ) ; } }
Sets the column options.

@param array $properties Associative array that describes property => value pairs.

@throws \Fridge\DBAL\Exception\SchemaException If the property does not exist.
Sets the column options .