root/tags/0.10.1/models/CascadeDeleteRelatedTest2.php
| Revision 2353, 488 bytes (checked in by meus, 16 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | class CascadeDeleteRelatedTest2 extends Doctrine_Record |
| 3 | { |
| 4 | public function setTableDefinition() |
| 5 | { |
| 6 | $this->hasColumn('name', 'string'); |
| 7 | $this->hasColumn('cscd_id', 'integer'); |
| 8 | } |
| 9 | public function setUp() |
| 10 | { |
| 11 | $this->hasOne('CascadeDeleteRelatedTest', array('local' => 'cscd_id', |
| 12 | 'foreign' => 'id', |
| 13 | 'onDelete' => 'SET NULL')); |
| 14 | } |
| 15 | } |
Note: See TracBrowser
for help on using the browser.