Skip to content

Commit e42909f

Browse files
authored
Merge pull request #2 from eafarooqi/eafarooqi-patch-2
Call to undefined function plural when saving data with AddFunction
2 parents 810b734 + 32e8767 commit e42909f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Traits/EntityTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public function __isset(string $key): bool
7676
*/
7777
public function __call(string $name, array $arguments)
7878
{
79+
$this->_verifyRelatable();
80+
7981
$verbs = ['has', 'set', 'add', 'remove'];
8082

8183
// Parse the name to check for supported relation verbs

0 commit comments

Comments
 (0)