first standalone plugin commit
This commit is contained in:
45
src/Model/Entity/Subregion.php
Normal file
45
src/Model/Entity/Subregion.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CakeAddresses\Model\Entity;
|
||||
|
||||
use Cake\ORM\Entity;
|
||||
|
||||
/**
|
||||
* Subregion Entity
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property string|null $translations
|
||||
* @property int $region_id
|
||||
* @property \Cake\I18n\DateTime|null $created_at
|
||||
* @property \Cake\I18n\DateTime $updated_at
|
||||
* @property bool $flag
|
||||
* @property string|null $wikiDataId
|
||||
*
|
||||
* @property \CakeAddresses\Model\Entity\Region $region
|
||||
* @property \CakeAddresses\Model\Entity\Country[] $countries
|
||||
*/
|
||||
class Subregion 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,
|
||||
'region_id' => true,
|
||||
'created_at' => true,
|
||||
'updated_at' => true,
|
||||
'flag' => true,
|
||||
'wikiDataId' => true,
|
||||
'region' => true,
|
||||
'countries' => true,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user