1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/ForeignKeyTest2.php

12 lines
290 B
PHP
Raw Normal View History

<?php
class ForeignKeyTest2 extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', null);
$this->hasColumn('foreignkey', 'integer');
$this->hasOne('ForeignKeyTest', 'ForeignKeyTest2.foreignkey');
}
}