1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests_old/models/FieldNameTest.php
2008-02-08 17:41:01 +00:00

13 lines
578 B
PHP

<?php
class FieldNameTest extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setColumn('someColumn', 'string', 200, array('default' => 'some string'));
$class->setColumn('someEnum', 'enum', 4, array('default' => 'php', 'values' => array('php', 'java', 'python')));
$class->setColumn('someArray', 'array', 100, array('default' => array()));
$class->setColumn('someObject', 'object', 200, array('default' => new stdClass));
$class->setColumn('someInt', 'integer', 20, array('default' => 11));
}
}