1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests_old/models/SerializeTest.php
2008-02-08 17:41:01 +00:00

32 lines
1.2 KiB
PHP

<?php
class SerializeTest extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setTableName('serialize_test');
$class->setColumn('booltest', 'boolean');
$class->setColumn('integertest', 'integer', 4, array('unsigned' => true));
$class->setColumn('floattest', 'float');
$class->setColumn('stringtest', 'string', 200, array('fixed' => true));
$class->setColumn('arraytest', 'array', 10000);
$class->setColumn('objecttest', 'object');
$class->setColumn('blobtest', 'blob');
$class->setColumn('clobtest', 'clob');
$class->setColumn('timestamptest', 'timestamp');
$class->setColumn('timetest', 'time');
$class->setColumn('datetest', 'date');
$class->setColumn('enumtest', 'enum', 4,
array(
'values' => array(
'php',
'java',
'python'
)
)
);
$class->setColumn('gziptest', 'gzip');
}
}