Allow setting Duration field by supplying a string or numeric value

Created on 26 March 2021, over 3 years ago
Updated 18 January 2023, almost 2 years ago


Problem/Motivation

It would be useful to be able to write code like

$entity->duration = "P1D";

Proposed resolution

Add a "setValue" method to DurationItem, that determines which property values should be written to.

User interface changes

None

API changes

Support setting field to a string or number

Data model changes

None

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom rlmumford Manchester

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024