Skip to content

Instantly share code, notes, and snippets.

@jackfruh
Created August 24, 2014 20:18
Show Gist options
  • Save jackfruh/56ed57ebd3ad3ab9a47f to your computer and use it in GitHub Desktop.
Save jackfruh/56ed57ebd3ad3ab9a47f to your computer and use it in GitHub Desktop.
Excel Model \app\Model\Excel.php
<?php
App::uses('AppModel', 'Model');
/**
* Excel Model
*
*/
class Excel extends AppModel {
/**
* Use table
*
* @var mixed False or table name
*/
public $useTable = 'excel';
/**
* Primary key field
*
* @var string
*/
public $primaryKey = 'ID';
/**
* Display field
*
* @var string
*/
public $displayField = 'LastName';
public $belongsTo = Array(
'Alias2' => array(
'className' => 'TimeSlot',
'foreignKey' => 'ID'
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment