From e7bd5900bc6e04e451c84e4876ac8bf5370a06df Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 7 May 2018 14:09:05 -0700 Subject: [PATCH] rough in a Storage Model --- web/api/app/Model/Storage.php | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 web/api/app/Model/Storage.php diff --git a/web/api/app/Model/Storage.php b/web/api/app/Model/Storage.php new file mode 100644 index 000000000..df9a77b87 --- /dev/null +++ b/web/api/app/Model/Storage.php @@ -0,0 +1,69 @@ + array( + 'numeric' => array( + 'rule' => array('numeric'), + //'message' => 'Your custom message here', + //'allowEmpty' => false, + //'required' => false, + //'last' => false, // Stop validation after this rule + //'on' => 'create', // Limit validation to 'create' or 'update' operations + ), + ), + ); + + //The Associations below have been created with all possible keys, those that are not needed can be removed + +/** + * hasMany associations + * + * @var array + */ + public $belongsTo = array( + 'Server' => array( + 'className' => 'Server', + 'foreignKey' => 'ServerId', + 'dependent' => false, + 'conditions' => '', + 'fields' => '', + 'order' => '', + ) + ); +}