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

10 lines
426 B
PHP
Raw Normal View History

<?php
class Task extends Doctrine_Record {
public static function initMetadata($class) {
$class->setColumn('name', 'string',100);
$class->setColumn('parent_id', 'integer');
$class->hasMany('Resource as ResourceAlias', array('local' => 'task_id', 'foreign' => 'resource_id', 'refClass' => 'Assignment'));
$class->hasMany('Task as Subtask', array('local' => 'id', 'foreign' => 'parent_id'));
}
}