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

15 lines
329 B
PHP
Raw Normal View History

<?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'));
}
}