Skip to content

Instantly share code, notes, and snippets.

@midorikocak
Created November 26, 2014 14:42
Show Gist options
  • Save midorikocak/72748262e094796c95e2 to your computer and use it in GitHub Desktop.
Save midorikocak/72748262e094796c95e2 to your computer and use it in GitHub Desktop.
Record Entity
<?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