Guest User

Ticket Model Class

a guest
Oct 3rd, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2. App::uses('AppModel', 'Model');
  3. /**
  4.  * Ticket Model
  5.  *
  6.  * @property TicketResponse $TicketResponse
  7.  */
  8. class Ticket extends AppModel {
  9.  
  10. /**
  11.  * Display field
  12.  *
  13.  * @var string
  14.  */
  15.     public $displayField = 'title';
  16.  
  17.  
  18.     //The Associations below have been created with all possible keys, those that are not needed can be removed
  19.  
  20. /**
  21.  * hasMany associations
  22.  *
  23.  * @var array
  24.  */
  25.     public $hasMany = array(
  26.         'TicketResponse' => array(
  27.             'className' => 'TicketResponse',
  28.             'foreignKey' => 'ticket_id',
  29.             'dependent' => false,
  30.             'conditions' => '',
  31.             'fields' => '',
  32.             'order' => '',
  33.             'limit' => '',
  34.             'offset' => '',
  35.             'exclusive' => '',
  36.             'finderQuery' => '',
  37.             'counterQuery' => ''
  38.         )
  39.     );
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment