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

14 lines
434 B
PHP
Raw Normal View History

<?php
class Song extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setColumn('album_id', 'integer');
$class->setColumn('genre', 'string',20);
$class->setColumn('title', 'string',30);
$class->hasOne('Album', array('local' => 'album_id',
'foreign' => 'id',
'onDelete' => 'CASCADE'));
}
}