1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/models/FieldNameTest.php

13 lines
578 B
PHP

<?php
class FieldNameTest extends Doctrine_Entity
{
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));
}
}