mirror of https://github.com/MISP/MISP
25 lines
592 B
PHP
25 lines
592 B
PHP
|
<?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();
|
||
|
}
|
||
|
}
|