-
-
Notifications
You must be signed in to change notification settings - Fork 979
Closed
Description
I have the following entity structure: BrandMessage has Campaign has (CampaignSettings and RunningTime). So when I call the /api/brand-messages api the entities CampaignSettings and RunningTime are nested in the third level. Also, CampaignSettings and RunningTime are embedded entities.
When I call the /api/campaigns api, everything works as expected. runningTime and settings are present:
{
"@context": "/app_dev.php/api/contexts/Campaign",
"@id": "/app_dev.php/api/campaigns",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/app_dev.php/api/campaigns/e64a026e-1b88-11e7-8825-0242ac110002",
"@type": "Campaign",
"app": "/app_dev.php/api/apps/e64d3274-11e7-1b88-8825-0242ac110002",
"runningTime": {
"daysLeftTillEnd": 99,
"daysLeftTillStart": -74,
"end": "2017-07-16T02:31:13+00:00",
"isFinished": false,
"start": "2017-01-23T08:02:29+00:00"
},
"settings": {
"participationLimit": 1,
"receiptMandatory": true,
"requiredProductCount": 5,
"rewardInEuroCent": 100
},
"title": "...",
"description": "..."
},
...
}
But when I call the /api/brand-messages api, these properties (runningTime and settings) are just null:
{
"@context": "/app_dev.php/api/contexts/BrandMessage",
"@id": "/app_dev.php/api/brand-messages",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/app_dev.php/api/brand-messages/e64d3274-1b88-11e7-8825-0242ac110002",
"@type": "BrandMessage",
"backgroundImage": null,
"campaign": {
"@id": "/app_dev.php/api/campaigns/e64a3837-1b88-11e7-8825-0242ac110002",
"@type": "Campaign",
"app": "/app_dev.php/api/apps/e64d3274-11e7-1b88-8825-0242ac110002",
"runningTime": null,
"settings": null,
"title": "...",
"description": "..."
},
"colorPair": "secondary",
"httpCallToActionLabel": "",
"httpLink": "",
"important": true,
"type": "CAMPAIGN",
"title": "..."
},
...
],
...
}
I double checked all the serialisation groups and they even work in the third nesting level for title and description. Is there a default nesting limit for nested properties or something like that? Or am I facing a bug? :-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels