45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace CakeAddresses\Model\Entity;
|
|
|
|
use Cake\ORM\Entity;
|
|
|
|
/**
|
|
* Region Entity
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property string|null $translations
|
|
* @property \Cake\I18n\DateTime|null $created_at
|
|
* @property \Cake\I18n\DateTime $updated_at
|
|
* @property bool $flag
|
|
* @property string|null $wikiDataId
|
|
*
|
|
* @property \CakeAddresses\Model\Entity\Country[] $countries
|
|
* @property \CakeAddresses\Model\Entity\Subregion[] $subregions
|
|
*/
|
|
class Region extends Entity {
|
|
|
|
/**
|
|
* Fields that can be mass assigned using newEntity() or patchEntity().
|
|
*
|
|
* Note that when '*' is set to true, this allows all unspecified fields to
|
|
* be mass assigned. For security purposes, it is advised to set '*' to false
|
|
* (or remove it), and explicitly make individual fields accessible as needed.
|
|
*
|
|
* @var array<string, bool>
|
|
*/
|
|
protected array $_accessible = [
|
|
'name' => true,
|
|
'translations' => true,
|
|
'created_at' => true,
|
|
'updated_at' => true,
|
|
'flag' => true,
|
|
'wikiDataId' => true,
|
|
'countries' => true,
|
|
'subregions' => true,
|
|
];
|
|
|
|
}
|