All pastes #1037830 Raw Edit

table def

public php v1 · immutable
#1037830 ·published 2008-06-03 16:05 UTC
rendered paste body
<?phpclass Example extends Doctrine_Record{    public function setTableDefinition()    {        $this->hasColumns(array(                        'id' => array(                            'type'     => 'string',                            'length'   => 32,                            'fixed' => true,                        ),                        'someint' => array(                            'type'     => 'integer',                            'length'   => 10,                            'unsigned' => true,                        ),                        'sometext' => array(                            'type'   => 'string',                            'length' => 12,                        ),                        'somedate' => array(                            'type' => 'date',                        ),                        'sometimestamp' => array(                            'type' => 'timestamp',                        ),                        'someboolean' => array(                            'type' => 'boolean',                        ),                        'somedecimal' => array(                            'type' => 'decimal',                        ),                        'somefloat' => array(                            'type' => 'float',                        ),                        'sometime' => array(                            'type'    => 'time',                            'default' => '12:34:05',                            'notnull' => true,                        ),                        'someclob' => array(                            'type' => 'clob',                        ),                        'someblob' => array(                            'type' => 'blob',                        ));}