2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
2008-05-14 01:20:34 +04:00
|
|
|
class FieldNameTest extends Doctrine_Entity
|
2007-09-02 18:24:49 +04:00
|
|
|
{
|
2008-02-04 00:29:57 +03:00
|
|
|
public static function initMetadata($class)
|
2007-09-02 18:24:49 +04:00
|
|
|
{
|
2008-02-04 00:29:57 +03:00
|
|
|
$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));
|
2007-09-02 18:24:49 +04:00
|
|
|
}
|
|
|
|
}
|