1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests_old/models/Data_File.php

9 lines
302 B
PHP

<?php
class Data_File extends Doctrine_Entity {
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'));
}
}