2009-09-09 20:23:39 -07:00
|
|
|
<?php
|
|
|
|
|
class QuotePage extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'QuotePage';
|
|
|
|
|
var $validate = array(
|
|
|
|
|
'page_number' => array('numeric'),
|
|
|
|
|
'content' => array('notempty'),
|
|
|
|
|
'quote_id' => array('numeric')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
|
var $belongsTo = array(
|
|
|
|
|
'Quote' => array(
|
|
|
|
|
'className' => 'Quote',
|
|
|
|
|
'foreignKey' => 'quote_id',
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
|
|
|
|
'order' => ''
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}
|
2009-10-10 00:06:46 -07:00
|
|
|
?>
|