Skip to content

Commit e7f1cfb

Browse files
committed
1295 fix data model template
1 parent 8735a82 commit e7f1cfb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
99
### Added
1010

1111
- Clear notifications for the process status of URN generation [#2486](https://github.com/magento/magento2-phpstorm-plugin/pull/2486)
12+
- Added array as a type in Data Model properties [#1295](https://github.com/magento/magento2-phpstorm-plugin/pull/1295)
1213

1314
### Fixed
1415

src/main/resources/fileTemplates/internal/Magento Data Model.php.ft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ${NAME} #if (${EXTENDS})extends ${EXTENDS} #end #if (${IMPLEMENTS} && $has
4848
*/
4949
public function get$propertyUpperCamel(): ?$propertyType
5050
{
51-
#if($propertyType == 'string')
51+
#if($propertyType == 'string' || $propertyType == 'array')
5252
return $this->getData(self::$propertyUpperSnake);
5353
#{else}
5454
return $this->getData(self::$propertyUpperSnake) === null ? null

0 commit comments

Comments
 (0)