Skip to content

Commit eeb4298

Browse files
Merge pull request #304 from antevgen/patch-2
Update property type in case if we don't have record in related table
2 parents 399b680 + 9efdfdb commit eeb4298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Coders/Model/Relations/HasOne.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class HasOne extends HasOneOrMany
1616
*/
1717
public function hint()
1818
{
19-
return $this->related->getQualifiedUserClassName();
19+
return $this->related->getQualifiedUserClassName() . '|null';
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)