Class Language
Abstract base class for custom ORM models. this class doesn't actually store any data, it merely acts as an interface between Domain objects and the Session (which actually owns all of the DB records).
- Alchemy\orm\DataMapper
- Alchemy\tests\Language
protected static
string
|
$table_name | "Language" |
#
Optional: Define the table name here. If left null, the class name will be used |
protected static
array
|
$schema_args | array(
'columns' => array(
'LanguageID' => 'Integer(primary_key = true, auto_increment = true)',
'ISO2Code' => 'String(2, unique = true)',
'ParentLanguageID' => 'Foreign(self.LanguageID, null = true)',
'SpokenLanguageID' => 'Foreign(self.LanguageID, null = true)',
'LatestChangeStamp' => 'Timestamp',
),
'relationships' => array(
'Files' => 'OneToMany(Alchemy\\tests\\UploadedFile, backref = "Language")',
'Parent' => 'ManyToOne(Alchemy\\tests\\Language, backref = "Children", key = self.ParentLanguageID)',
'SpokenLanguage' => 'OneToOne(Alchemy\\tests\\Language, backref = "WrittenLanguage", key = self.SpokenLanguageID)'
)) |