public function requireColumn($name)
    {
        if ($name != strtolower($name)) {
            throw new \DomainException('Column name must be lowercase: ' . $name);
        }

        if (!isset($this->_columns[$name])) {
            throw new \RuntimeException('Undefined column: ' . $this->_name . '.' . $name);
        }
    }
public function requireColumn($name)
    {
        if ($name != strtolower($name)) {
            throw new \DomainException('Column name must be lowercase: ' . $name);
        }

        if (!isset($this->_columns[$name])) {
            throw new \RuntimeException('Undefined column: ' . $this->_name . '.' . $name);
        }
    }
public function requireColumn ( $ name ) { if ( $ name != strtolower ( $ name ) ) { throw new \ DomainException ( 'Column name must be lowercase: ' . $ name ) ; } if ( ! isset ( $ this -> _columns [ $ name ] ) ) { throw new \ RuntimeException ( 'Undefined column: ' . $ this -> _name . '.' . $ name ) ; } }
Force presence of column
@param string $name Column name to check for, must be lowercase
@throws \RuntimeException if column does not exist
@throws \DomainException if $name is not lowercase
Force presence of column