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