Add multilingual capabilities to your Doctrine models.
Questionnaire:
actAs:
WebEnq4_Template_I18n:
fields: [title]
columns:
title: string
active: boolean
Based on Doctrine I18n, adapted to support re-use of translations.
package | WebEnq4_I18n |
---|---|
author | Rolf Kleef |
buildForeignKeys(\Doctrine_Table $table) : array
The column is automatically added to the generated translation model so we can create foreign keys back to the table object that refers to it.
\Doctrine_Table
the table object that owns the plugin
array
an array of foreign key definitionsbuildLocalRelation(string $alias) : void
string
Alias of the foreign relation
getRelationForeignKey() : string
string
$foreigngetRelationLocalKey() : string
string
$local