27 lines
683 B
PHP
27 lines
683 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
*
|
|
* @package PTA
|
|
* @subpackage Storage Pools
|
|
* @category Models
|
|
* @author Deon George
|
|
* @copyright (c) 2010 phpTSMadmin Development Team
|
|
* @license http://phptsmadmin.sf.net/license.html
|
|
*/
|
|
class Model_STGPOOL extends ORMTSM {
|
|
protected $_table_name = 'STGPOOLS';
|
|
protected $_primary_key = 'STGPOOL_NAME';
|
|
protected $_sorting = array(
|
|
'STGPOOL_NAME'=>'ASC',
|
|
);
|
|
|
|
protected $_has_one = array(
|
|
'DEVCLASSES'=>array('foreign_key'=>'DEVCLASS_NAME','far_key'=>'DEVCLASS'),
|
|
);
|
|
protected $_has_many = array(
|
|
'VOLUME'=>array('foreign_key'=>'STGPOOL_NAME','far_key'=>'STGPOOL_NAME'),
|
|
);
|
|
}
|
|
?>
|