Created
August 24, 2014 20:18
-
-
Save jackfruh/56ed57ebd3ad3ab9a47f to your computer and use it in GitHub Desktop.
Excel Model \app\Model\Excel.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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