Files
pmgr/site/models/payment.php
2009-05-28 05:49:03 +00:00

31 lines
708 B
PHP

<?php
class Payment extends AppModel {
var $name = 'Payment';
var $validate = array(
'id' => array('numeric'),
'receipt_id' => array('numeric'),
'payment_type_id' => array('numeric'),
'amount' => array('money')
);
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $belongsTo = array(
'Receipt' => array(
'className' => 'Receipt',
'foreignKey' => 'receipt_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
'PaymentType' => array(
'className' => 'PaymentType',
'foreignKey' => 'payment_type_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
}
?>