1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/models/Album.php

12 lines
277 B
PHP

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