1
0
mirror of synced 2024-12-13 06:46:03 +03:00
doctrine2/models/CascadeDeleteRelatedTest2.php

13 lines
458 B
PHP

<?php
class CascadeDeleteRelatedTest2 extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setColumn('name', 'string');
$class->setColumn('cscd_id', 'integer');
$class->hasOne('CascadeDeleteRelatedTest', array('local' => 'cscd_id',
'foreign' => 'id',
'onDelete' => 'SET NULL'));
}
}