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