MISP/app/Model/SharingGroupElement.php

25 lines
592 B
PHP
Raw Normal View History

2015-02-23 11:33:38 +01:00
<?php
App::uses('AppModel', 'Model');
class SharingGroupElement extends AppModel {
public $actsAs = array('Containable');
public $validate = array(
);
public $belongsTo = array(
'SharingGroup' => array(
'className' => 'SharingGroup',
'foreignKey' => 'sharing_group_id'
),
'Organisation' => array(
'className' => 'Organisation',
'foreignKey' => 'organisation_id',
//'conditions' => array('SharingGroupElement.organisation_uuid' => 'Organisation.uuid')
)
);
public function beforeValidate($options = array()) {
parent::beforeValidate();
}
}