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

22 lines
651 B
PHP

<?php
class TestUser extends Doctrine_Record
{
public function setUp()
{
$this->hasMany('TestMovie as UserBookmarks',
array('local' => 'user_id',
'foreign' => 'movie_id',
'refClass' => 'TestMovieUserBookmark'));
$this->hasMany('TestMovie as UserVotes',
array('local' => 'user_id',
'foreign' => 'movie_id',
'refClass' => 'TestMovieUserVote'));
}
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 30);
}
}