You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# config/packages/workflow.yamlframework:
workflows:
marking_store:
type: 'method'property: 'currentPlace'enum: true # maybe add a config key to specifiy if the property is an enum but idealy read property reflexion to autoset
// src/Enum/BlogPostPlacesnamespaceApp\Enum;
enum BlogPostPlaces: string
{
case Draft = 'draft';
case Reviewed = 'reviewed';
//...
}
// src/Entity/BlogPost.phpnamespaceApp\Entity;
class BlogPost
{
// the configured marking store property must be declaredprivateBlogPostPlaces$currentPlace = BlogPostPlaces::Draft;
}
The text was updated successfully, but these errors were encountered:
Please read the previous discussions on why this isn't implemented (see e.g. #44211, #54582, #57193). I am closing for the reasons stated there. Thank you for understanding.
Description
If we take the Post sample from the doc: https://symfony.com/doc/current/workflow.html, it would be nice to define the currentPlace as an enum property
Example
The text was updated successfully, but these errors were encountered: