mirror of https://github.com/MISP/MISP
29 lines
546 B
PHP
29 lines
546 B
PHP
<?php
|
|
App::uses('AppModel', 'Model');
|
|
class TaxonomyPredicate extends AppModel{
|
|
public $useTable = 'taxonomy_predicates';
|
|
public $recursive = -1;
|
|
public $actsAs = array(
|
|
'Containable',
|
|
);
|
|
|
|
public $validate = array(
|
|
'value' => array(
|
|
'rule' => array('valueNotEmpty'),
|
|
),
|
|
'expanded' => array(
|
|
'rule' => array('valueNotEmpty'),
|
|
),
|
|
);
|
|
|
|
public $hasMany = array(
|
|
'TaxonomyEntry' => array(
|
|
'dependent' => true
|
|
)
|
|
);
|
|
|
|
public function beforeValidate($options = array()) {
|
|
parent::beforeValidate();
|
|
return true;
|
|
}
|
|
} |