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

13 lines
285 B
PHP
Raw Normal View History

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