1
0
mirror of synced 2025-01-06 00:57:10 +03:00
doctrine2/models/ResourceType.php

9 lines
305 B
PHP

<?php
class ResourceType extends Doctrine_Record {
public static function initMetadata($class) {
$class->setColumn('type', 'string',100);
$class->hasMany('Resource as ResourceAlias', array('local' => 'type_id', 'foreign' => 'resource_id', 'refClass' => 'ResourceReference'));
}
}