1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/models/App_Category.php

12 lines
366 B
PHP
Raw Normal View History

<?php
class App_Category extends Doctrine_Record {
public function setTableDefinition() {
$this->hasColumn('name', 'string', 32);
$this->hasColumn('parent_id', 'integer');
}
public function setUp() {
$this->hasMany('App', 'App.app_category_id');
$this->hasMany('App_Category as Parent', 'App_Category.parent_id');
}
}