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

20 lines
621 B
PHP

<?php
class TestUser extends Doctrine_Entity
{
public static function initMetadata($class)
{
$class->setColumn('name', 'string', 30);
$class->hasMany('TestMovie as UserBookmarks',
array('local' => 'user_id',
'foreign' => 'movie_id',
'refClass' => 'TestMovieUserBookmark'));
$class->hasMany('TestMovie as UserVotes',
array('local' => 'user_id',
'foreign' => 'movie_id',
'refClass' => 'TestMovieUserVote'));
}
}