Closed (fixed)
Project:
Simplenews
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2022 at 17:46 UTC
Updated:
24 Oct 2022 at 11:44 UTC
Jump to comment: Most recent
Subscriber::uuid() returns NULL.
Subscriber:
* @ContentEntityType(
* id = "simplenews_subscriber",
...
* entity_keys = {
* "id" = "id",
* "label" = "mail"
* },
ContentEntityBase:
public function uuid() {
return $this
->getEntityKey('uuid');
}Add the entity key.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
berdirDefining the key results in adding a key and schema changes and requires an update function.
Comment #4
adamps commentedNeeds work for #3
Comment #5
jonathanshawComment #6
jonathanshawThanks for the feedback, done.
Comment #7
adamps commentedThanks
Comment #10
adamps commentedOops this caused #3315497: Mismatched entity and/or field definitions
Comment #11
jjancel commentedsimplenews module
830009 - Fix 'uuid' entity key for subscriber.
Failure : Drupal\Core\Entity\EntityStorageException : The uuid column cannot have NOT NULL constraints as it holds NULL values.