Skip to content

Commit 2440569

Browse files
authored
Update entities.rst
`protected $_virtual` updated to `protected array $_virtual` as CakePHP 5 throws a fatal error: `Fatal error: Type of App\Model\Entity\EntityName::$_virtual must be array (as in class Cake\ORM\Entity)` without this specification.
1 parent fbe5b68 commit 2440569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/orm/entities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ field that should be exposed::
571571

572572
class User extends Entity
573573
{
574-
protected $_virtual = ['full_name'];
574+
protected array $_virtual = ['full_name'];
575575
}
576576

577577
This list can be modified at runtime using the ``setVirtual()`` method::

0 commit comments

Comments
 (0)