2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
|
|
|
class BoardWithPosition extends Doctrine_Record {
|
|
|
|
public function setTableDefinition() {
|
|
|
|
$this->hasColumn('position', 'integer');
|
|
|
|
$this->hasColumn('category_id', 'integer');
|
|
|
|
}
|
|
|
|
public function setUp() {
|
2007-09-03 20:01:34 +04:00
|
|
|
$this->hasOne('CategoryWithPosition as Category', array('local' => 'category_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
|
2007-09-02 18:24:49 +04:00
|
|
|
}
|
|
|
|
}
|