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

13 lines
385 B
PHP
Raw Normal View History

2007-07-20 23:17:58 +04:00
<?php
class SearchTest extends Doctrine_Entity
2007-07-20 23:17:58 +04:00
{
public static function initMetadata($class)
2007-07-20 23:17:58 +04:00
{
$class->setColumn('title', 'string', 100);
$class->setColumn('content', 'string');
$options = array('generateFiles' => false,
2007-07-20 23:17:58 +04:00
'fields' => array('title', 'content'));
$class->actAs('Searchable', $options);
2007-07-20 23:17:58 +04:00
}
}