2007-09-29 16:31:56 +04:00
|
|
|
<?php
|
|
|
|
class ValidatorTest_DateModel extends Doctrine_Record {
|
2008-02-04 00:29:57 +03:00
|
|
|
public static function initMetadata($class) {
|
|
|
|
$class->setColumn('birthday', 'date', null, array('past'));
|
|
|
|
$class->setColumn('death', 'date', null, array('future'));
|
2007-09-29 16:31:56 +04:00
|
|
|
}
|
|
|
|
}
|