Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Given I have 2 meta entity types:
- Page views: mapped to the target bundle Article of type Node
- Likes: mapped to the target entity type User
When I create a new meta entity of type Like then I am currently allowed to select both a User entity or an Article as the target entity.
The MappedTargetEntityConstraint
does not check if the target entity type belongs to the current meta entity, it is satisfied if the target entity is mapped to any meta entity type.
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff.txt | 662 bytes | pfrenssen |
#5 | 3080983-5-test-only.patch | 2.25 KB | pfrenssen |
#5 | 3080983-5.patch | 3.68 KB | pfrenssen |
|
Comments
Comment #2
pfrenssenComment #5
pfrenssenApparently this also uncovers a bug in the
UniquePerMetaTypeAndTargetConstraintTest
: the mapping of thedownload_count
meta entity type was not defined in this test, but due to this bug this was not failing the test.Comment #7
pfrenssenComment #9
pfrenssen