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

13 lines
285 B
PHP

<?php
class FooForeignlyOwnedWithPk extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 200);
}
public function setUp()
{
$this->hasOne('FooRecord', array('local' => 'id', 'foreign' => 'id'));
}
}