add heroicons icon set
This commit is contained in:
@@ -30,7 +30,7 @@ trait OverrideTableTrait
|
||||
*
|
||||
* @return Table
|
||||
*/
|
||||
public function getTable(string $tableName = null)
|
||||
public function getTable(string|null $tableName)
|
||||
{
|
||||
if ($this->_table instanceof Table) {
|
||||
return $this->_table;
|
||||
|
||||
23
src/Model/Entity/SecureEntity.php
Normal file
23
src/Model/Entity/SecureEntity.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CheeseCake\Model\Entity;
|
||||
|
||||
use Cake\ORM\Entity;
|
||||
|
||||
/**
|
||||
* Secure Entity - must explicitly pass fields that are acceptable to be updated on each newEntity/patchEntity call
|
||||
*/
|
||||
class SecureEntity 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 = [];
|
||||
}
|
||||
Reference in New Issue
Block a user