6 * This class has been auto-generated by the Doctrine ORM Framework
8 * @property integer $id
9 * @property string $username
10 * @property timestamp $time
11 * @property string $ip
12 * @property integer $parent_id
13 * @property clob $content
14 * @property Comment $Parent
15 * @property Doctrine_Collection $Comment
17 * @package ##PACKAGE##
18 * @subpackage ##SUBPACKAGE##
19 * @author ##NAME## <##EMAIL##>
22 abstract class BaseComment
extends Doctrine_Record
24 public function setTableDefinition()
26 $this->setTableName('comment');
27 $this->hasColumn('id', 'integer', null, array('type' => 'integer', 'primary' => true, 'autoincrement' => true));
28 $this->hasColumn('username', 'string', null, array('type' => 'string'));
29 $this->hasColumn('time', 'timestamp', null, array('type' => 'timestamp'));
30 $this->hasColumn('ip', 'string', null, array('type' => 'string'));
31 $this->hasColumn('parent_id', 'integer', null, array('type' => 'integer'));
32 $this->hasColumn('content', 'clob', null, array('type' => 'clob'));
35 public function setUp()
37 $this->hasOne('Comment as Parent', array('local' => 'parent_id',
40 $this->hasMany('Comment', array('local' => 'id',
41 'foreign' => 'parent_id'));