. */ /** * Doctrine_Search_Record * * @author Konsta Vesterinen * @package Doctrine * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @version $Revision$ * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 */ class Doctrine_Search_Record extends Doctrine_Template { public function setTableDefinition() { $this->hasColumn('keyword', 'string', 250, array('notnull' => true)); $this->hasColumn('field', 'string', 50, array('notnull' => true)); $this->hasColumn('[component]_id', 'string', 50, array('notnull' => true)); $this->hasColumn('position', 'integer', 8); } public function setUp() { $this->hasOne('[component]', array('local' => '[component]_id')); } }