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

11 lines
450 B
PHP

<?php
class EnumTest extends Doctrine_Entity
{
public static function initMetadata($class) {
$class->setColumn('status', 'enum', 11, array('values' => array('open', 'verified', 'closed')));
$class->setColumn('text', 'string');
$class->hasMany('EnumTest2 as Enum2', array('local' => 'id', 'foreign' => 'enum_test_id'));
$class->hasMany('EnumTest3 as Enum3', array('local' => 'text', 'foreign' => 'text'));
}
}