Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The entity type [entity name] does not have an "revision_created" entity revision metadata key

I am using Drupal 9.0.5 as recommends Drupal site. I created a first entity content type, but I got the message "The entity type [entity name] does not have an "revision_created" entity revision metadata key.".

like image 321
Jasmin Avatar asked Sep 13 '20 11:09

Jasmin


1 Answers

Here is the answer that was added into the question originally:

I solved this problem by adding this in my entity file (in @ContentEntityType) :

 * revision_metadata_keys = {
 *     "revision_user" = "revision_user",
 *     "revision_created" = "revision_created",
 *     "revision_log_message" = "revision_log"
 *   },

Perhaps that could help somebody.

like image 63
Dennis Jaheruddin Avatar answered Jan 02 '23 09:01

Dennis Jaheruddin