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