1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/TestUser.php

22 lines
651 B
PHP
Raw Normal View History

<?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);
}
}