diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-14 15:44:50 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-14 15:44:50 +0000 |
| commit | 4c0242f044a53979a08e7bec5913dc6a48b976f9 (patch) | |
| tree | a919e86cdbea7dbf6dd4b577f214dec836539de4 /cli | |
| parent | ba187680db11fc21bd8ed095492c94d06e17ef9b (diff) | |
fixes #4145
Closes #4145
Merge request studip/studip!2987
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/Commands/SORM/DescribeModels.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/Commands/SORM/DescribeModels.php b/cli/Commands/SORM/DescribeModels.php index 46dd8ff..b1084d6 100644 --- a/cli/Commands/SORM/DescribeModels.php +++ b/cli/Commands/SORM/DescribeModels.php @@ -156,6 +156,7 @@ final class DescribeModels extends AbstractCommand if ( $options['foreign_key'] !== 'id' + && !is_callable($options['foreign_key']) && isset($meta['fields'][$options['foreign_key']]) && $meta['fields'][$options['foreign_key']]['null'] === 'YES' ) { |
