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

12 lines
277 B
PHP
Raw Normal View History

<?php
class Album extends Doctrine_Record {
public function setUp() {
$this->ownsMany('Song', 'Song.album_id');
}
public function setTableDefinition() {
$this->hasColumn('user_id', 'integer');
$this->hasColumn('name', 'string',20);
}
}