public function construct()
{
if ($this->getTable()->hasRelation('Translation')) {
// only add filter to each table once
if (!$this->getTable()->getOption('has_symfony_i18n_filter')) {
$this->getTable()->unshiftFilter(new sfDoctrineRecordI18nFilter())->setOption('has_symfony_i18n_filter', true);
}
}
}