We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df5024 commit 445f4a7Copy full SHA for 445f4a7
src/Annotator/ModelAnnotator.php
@@ -310,7 +310,11 @@ protected function getAssociations(AssociationCollection $tableAssociations): ar
310
* @return string
311
*/
312
protected function throughAlias(BelongsToMany $association): string {
313
- $through = $association->getThrough();
+ try {
314
+ $through = $association->getThrough();
315
+ } catch (Throwable) {
316
+ $through = null;
317
+ }
318
if ($through) {
319
if (is_object($through)) {
320
return $through->getAlias();
0 commit comments