Skip to content

Commit 7a018f4

Browse files
committed
fix get model from attribute in collection instance
1 parent 2a8423c commit 7a018f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Classes/ModelCollectionBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($data = null)
2929

3030
protected function getModelClassFromAttribute(string $attribute)
3131
{
32-
return '\Mitryusweb\Model\\' . ($this->itemAttributeModel[$attribute] ?? '');
32+
return $this->itemAttributeModel[$attribute] ?? '';
3333
}
3434

3535
public function __get($attribute)

0 commit comments

Comments
 (0)