Skip to content

Commit 7eaefbe

Browse files
committed
Merge pull request #9 from dejv88/master
Fixed compatibility issue with kdyby/doctrine v3
2 parents 4a8c3df + bce859c commit 7eaefbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Entities/Attributes/Translatable.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public function &__get($name) // "&" intentionally due to compatibility with Net
3333
return $value;
3434
}
3535

36+
if (method_exists($this, $methodName)) {
37+
$value = $this->$methodName();
38+
return $value;
39+
}
40+
3641
return $this->$name;
3742
}
3843

0 commit comments

Comments
 (0)