2008-05-08 18:17:35 +04:00
|
|
|
<?php
|
2008-05-14 01:20:34 +04:00
|
|
|
class CmsComment extends Doctrine_Entity
|
2008-05-08 18:17:35 +04:00
|
|
|
{
|
|
|
|
public static function initMetadata($class)
|
|
|
|
{
|
|
|
|
$class->mapColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
|
|
|
|
$class->mapColumn('topic', 'string', 255);
|
|
|
|
$class->mapColumn('text', 'string');
|
|
|
|
$class->mapColumn('article_id', 'integer', 4);
|
|
|
|
}
|
|
|
|
}
|