1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests_old/models/CascadeDeleteRelatedTest2.php
2008-02-08 17:41:01 +00:00

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