-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
11 - Add a relation between events and locations #16
Open
luca-rath
wants to merge
1
commit into
assignment/10
Choose a base branch
from
assignment/11
base: assignment/10
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cde5ea5
to
f154f22
Compare
d6c84b1
to
e308bd0
Compare
fec99f7
to
6fb5f5b
Compare
d360195
to
0796a36
Compare
6fb5f5b
to
ef573b2
Compare
0796a36
to
3503ec3
Compare
3503ec3
to
4030c29
Compare
053fdcc
to
967ae4c
Compare
58ef1d6
to
90219e8
Compare
79c5b77
to
592b243
Compare
90219e8
to
4347542
Compare
592b243
to
c38dfbb
Compare
b18cd02
to
5619364
Compare
c38dfbb
to
4e09000
Compare
5619364
to
dadb184
Compare
dadb184
to
b48485d
Compare
3e38dbf
to
c23c253
Compare
bf0011e
to
636e0fb
Compare
636e0fb
to
8c7a370
Compare
53bc591
to
f27b7b7
Compare
ef30437
to
69ac5ef
Compare
f27b7b7
to
25529e5
Compare
25529e5
to
ea71bcd
Compare
e218ec8
to
b7442cd
Compare
611bf1a
to
f739c78
Compare
889543c
to
844da41
Compare
f739c78
to
27a29f3
Compare
150b891
to
85eb9ea
Compare
27a29f3
to
b622996
Compare
85eb9ea
to
9493801
Compare
b622996
to
82a570c
Compare
9493801
to
ce454b3
Compare
1446313
to
83977e6
Compare
ce454b3
to
3c9f9f5
Compare
105a116
to
4eb2a81
Compare
3c9f9f5
to
cbdcd62
Compare
4eb2a81
to
51ed095
Compare
cbdcd62
to
6f90bb1
Compare
51ed095
to
51e1fdb
Compare
51e1fdb
to
a2ba9fb
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a association between events and locations
Goal
After implementing the location management functionality in the Sulu administration interface, we want to add an
association between the
Event
entity and theLocation
entity. With this assignment we are completing our goal ofremoving redundant location information inside of different events.
Steps
Event
entity and theLocation
entitybin/adminconsole doctrine:schema:update --force
locationId
(will be used in the controller afterwards)locationId
property in yoursrc/Controller/EventController.php
single_location_selection
field type in yourconfig/packages/sulu_admin.yaml
locationId
with the typesingle_location_selection
to yourevent_details
formHints
bin/adminconsole doctrine:schema:validate
bin/adminconsole debug:config sulu_admin field_type_options.single_selection
to get some insights on how toconfigure a single selection field type.
More Information
If you want to select a custom entity somewhere in your form, you need to use a respective field type for this
property. To simplify this process for the developer, Sulu includes an abstract
selection
andsingle_selection
field type. These abstract field types can be instantiated for your custom entity by providing respective
field_type_options
in the configuration of your application.Links