2007-09-02 20:19:32 +04:00
|
|
|
<?php
|
|
|
|
class Location extends Doctrine_Record
|
|
|
|
{
|
2008-02-04 00:29:57 +03:00
|
|
|
public static function initMetadata($class)
|
2007-09-02 20:19:32 +04:00
|
|
|
{
|
2008-02-04 00:29:57 +03:00
|
|
|
$class->setColumn('lat', 'double', 10, array ());
|
|
|
|
$class->setColumn('lon', 'double', 10, array ());
|
|
|
|
$class->hasMany('LocationI18n as LocationI18n', array('local' => 'id', 'foreign' => 'id'));
|
2007-09-02 20:19:32 +04:00
|
|
|
}
|
|
|
|
}
|