1
0
mirror of synced 2024-12-13 06:46:03 +03:00
doctrine2/models/BlogTag.php

11 lines
285 B
PHP

<?php
class BlogTag extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setColumn('name', 'string', 100);
$class->setColumn('description', 'string');
$class->hasOne('Blog', array('onDelete' => 'CASCADE'));
}
}