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

16 lines
488 B
PHP

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