14 lines
411 B
PHP
14 lines
411 B
PHP
<?php
|
|
class App extends Doctrine_Record {
|
|
public function setTableDefinition() {
|
|
$this->hasColumn('name', 'string', 32);
|
|
$this->hasColumn('user_id', 'integer', 11);
|
|
$this->hasColumn('app_category_id', 'integer', 11);
|
|
}
|
|
public function setUp() {
|
|
$this->hasOne('User', 'User.id');
|
|
$this->hasMany('App_Category as Category', 'App_Category.id');
|
|
}
|
|
}
|
|
|