1
0
mirror of synced 2025-02-22 23:23:14 +03:00
doctrine2/models/Tag.php

8 lines
262 B
PHP
Raw Normal View History

<?php
class Tag extends Doctrine_Record {
public static function initMetadata($class) {
$class->setColumn('tag', 'string', 100);
$class->hasMany('Photo', array('local' => 'tag_id', 'foreign' => 'photo_id', 'refClass' => 'Phototag'));
}
}