1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests_old/models/Song.php

14 lines
434 B
PHP
Raw Normal View History

<?php
class Song extends Doctrine_Entity
{
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'));
}
}