1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/models/ForeignKeyTest2.php

12 lines
290 B
PHP

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