Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/Eccube/Entity/Master/AbstractMasterEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public function __get($name)

public function __set($name, $value)
{
throw new \InvalidArgumentException();
// Allow Doctrine ORM 3.x lazy ghost objects to hydrate properties
// see also. https://github.com/EC-CUBE/ec-cube/issues/6469
}

public static function __callStatic($name, $arguments)
Expand All @@ -144,6 +145,14 @@ public static function __callStatic($name, $arguments)

protected static function getConstantValue($name)
{
@trigger_error(
sprintf(
'The enum-like property access mechanism is deprecated. Use PHP 8.2+ trait constants instead: trait MyTrait { public const %s = value; }',
$name
),
E_USER_DEPRECATED
);

if (in_array($name, ['id', 'name', 'sortNo'])) {
throw new \InvalidArgumentException();
}
Expand Down
Loading