This is a common case with optional Entity associations: $user->getGroup()->getName() The property path `group.name` (traversing from the User Entity), when the User is not assigned to a Group, will throw an UnexpectedTypeException. This is caught so that the User can still be listed as an option, just without any nesting. |
||
---|---|---|
.. | ||
Symfony/Tests | ||
bootstrap.php |