10 lines
333 B
PHP
10 lines
333 B
PHP
<?php
|
|
class ValidatorTest_DateModel extends Doctrine_Record {
|
|
public static function initMetadata($class) {
|
|
$class->setColumn('birthday', 'date', null,
|
|
array('validators' => array('past')));
|
|
$class->setColumn('death', 'date', null,
|
|
array('validators' => array('future')));
|
|
}
|
|
}
|