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

13 lines
458 B
PHP
Raw Normal View History

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