Created
November 26, 2014 14:42
-
-
Save midorikocak/72748262e094796c95e2 to your computer and use it in GitHub Desktop.
Record Entity
This file contains 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 | |
// src/Model/Entity/Record.php | |
namespace App\Model\Entity; | |
use Cake\ORM\Entity; | |
/** | |
* Record Entity. | |
*/ | |
class Record extends Entity { | |
/** | |
* Fields that can be mass assigned using newEntity() or patchEntity(). | |
* | |
* @var array | |
*/ | |
protected $_accessible = [ | |
'name' => true, | |
'url' => true, | |
'description' => true, | |
'user_id' => true, | |
'user' => true, | |
'addresses' => true, | |
'businesses' => true, | |
'connections' => true, | |
'emails' => true, | |
'organizations' => true, | |
'persons' => true, | |
'telephones' => true, | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment