1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/SelfRefTest.php

15 lines
329 B
PHP

<?php
class SelfRefTest extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 50);
$this->hasColumn('created_by', 'integer');
}
public function setUp()
{
$this->hasOne('SelfRefTest as createdBy', array('local' => 'created_by'));
}
}