Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sparql_entity_storage
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
sparql_entity_storage
Merge requests
!19
Don't throw exception for unmapped bundles
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Don't throw exception for unmapped bundles
issue/sparql_entity_storage-3333585:3333585-ex
into
2.x
Overview
0
Commits
3
Pipelines
0
Changes
4
Merged
Don't throw exception for unmapped bundles
Claudiu Cristea
requested to merge
issue/sparql_entity_storage-3333585:3333585-ex
into
2.x
Jan 14, 2023
Overview
0
Commits
3
Pipelines
0
Changes
4
Closes
#3333585
0
0
Merge request reports
Compare
2.x
version 3
c0c6ef2c
Jan 14, 2023
version 2
257c3683
Jan 14, 2023
version 1
95fade63
Jan 14, 2023
2.x (base)
and
latest version
latest version
c0c6ef2c
3 commits,
Jan 16, 2023
version 3
c0c6ef2c
3 commits,
Jan 14, 2023
version 2
257c3683
2 commits,
Jan 14, 2023
version 1
95fade63
1 commit,
Jan 14, 2023
4 files
+
3
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
src/SparqlEntityStorageFieldHandler.php
+
1
−
5
View file @ c0c6ef2c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -364,11 +364,7 @@ class SparqlEntityStorageFieldHandler implements SparqlEntityStorageFieldHandler
*/
public
function
getInboundBundleValue
(
string
$entity_type_id
,
string
$bundle_uri
):
array
{
$inbound_map
=
$this
->
getInboundMap
(
$entity_type_id
);
if
(
empty
(
$inbound_map
[
'bundles'
][
$bundle_uri
]))
{
throw
new
\Exception
(
"A bundle mapped to <
$bundle_uri
> was not found."
);
}
return
$inbound_map
[
'bundles'
][
$bundle_uri
];
return
$inbound_map
[
'bundles'
][
$bundle_uri
]
??
[];
}
/**
Loading