2011-05-16 21:30:23 -07:00
|
|
|
<?php
|
|
|
|
|
class DocPage extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'DocPage';
|
|
|
|
|
|
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
|
var $belongsTo = array(
|
|
|
|
|
'Document' => array(
|
|
|
|
|
'className' => 'Document',
|
|
|
|
|
'foreignKey' => 'document_id',
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
2011-05-18 16:46:22 -07:00
|
|
|
'order' => '',
|
|
|
|
|
'counterCache' => 'doc_page_count'
|
2011-05-16 21:30:23 -07:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
2011-05-18 16:46:22 -07:00
|
|
|
var $order = 'page_number ASC';
|
2011-05-16 21:30:23 -07:00
|
|
|
}
|
|
|
|
|
?>
|