1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/models/Data_File.php

9 lines
302 B
PHP
Raw Normal View History

<?php
class Data_File extends Doctrine_Record {
public static function initMetadata($class) {
$class->setColumn('filename', 'string');
$class->setColumn('file_owner_id', 'integer');
$class->hasOne('File_Owner', array('local' => 'file_owner_id', 'foreign' => 'id'));
}
}