table def
public php v1 · immutable<?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', ));}