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

14 lines
434 B
PHP

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