During a new entity type creation, the properties, are not added to the object, and
eck__entity_type__schema() is looking or $entity_type->properties. This result in properties columns not being added to the table, and raise an error PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uid' [...] while trying to save a new entity.
Patch attached, please review.

CommentFileSizeAuthor
#1 eck-properties_not_added-1311364.patch516 bytespascalduez

Comments

pascalduez’s picture

StatusFileSize
new516 bytes
fmizzell’s picture

Status: Active » Closed (fixed)

Thank you so much for finding all this major bugs. A modify version of this patch was added to 1.1-alpha3

  • Commit c26b69f on 7.x-1.x, change_paths, own_permissions, 7.x-2.x-property-widgets, 7.x-3.x, entity_reference, 7.x-3.x-settings, 7.x-2.0.x, 7.x-2.1.x authored by pascalduez, committed by fmizzell:
    #1311364 properties needed in the entity_type object for the entity type...

  • Commit c26b69f on 7.x-1.x, change_paths, own_permissions, 7.x-2.x-property-widgets, 7.x-3.x, entity_reference, 7.x-3.x-settings, 7.x-2.0.x, 7.x-2.1.x authored by pascalduez, committed by fmizzell:
    #1311364 properties needed in the entity_type object for the entity type...

  • Commit c26b69f on 7.x-1.x, 7.x-3.x, 8.x authored by pascalduez, committed by fmizzell:
    #1311364 properties needed in the entity_type object for the entity type...

  • Commit c26b69f on 7.x-1.x, 7.x-3.x, 8.x authored by pascalduez, committed by fmizzell:
    #1311364 properties needed in the entity_type object for the entity type...