1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/models/Task.php

12 lines
363 B
PHP
Raw Normal View History

<?php
class Task extends Doctrine_Record {
public function setUp() {
$this->hasMany('Resource as ResourceAlias', 'Assignment.resource_id');
$this->hasMany('Task as Subtask', 'Subtask.parent_id');
}
public function setTableDefinition() {
$this->hasColumn('name', 'string',100);
$this->hasColumn('parent_id', 'integer');
}
}