Select Git revision
Subject.php
Subject.php 376 B
<?php
class Subject extends Nmc_Db_Table_Row
{
protected function _init()
{
parent::_init();
$departmentRelation = new Nmc_Db_Table_Relation_HasOne(
Departments::getInstance(),
$this,
'department',
'department',
true
);
$this->_registerRelation($departmentRelation);
}
}