LocationI18n.php 403 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php
class LocationI18n extends Doctrine_Record
{ 
    public function setTableDefinition()
    {
        $this->hasColumn('name', 'string', 50, array());
        $this->hasColumn('id', 'integer', 10, array('primary' => true));
        $this->hasColumn('culture', 'string', 2);
    }
    
    public function setUp()
    {
        $this->hasOne('Location as Location', array('local' => 'id'));
    }
}