[Vuejs]-Shopware 6 Administration: Where come from the value of property id in new entity

0👍

The reason should be in the defined property enumerable in Object.defineProperty of id in class Entity.js:

// ~/src/Administration/Resources/app/administration/node_modules/@shopware-ag/admin-extension-sdk/es/data/_internals/Entity.js
class EntityClass {
    constructor(id, entityName, data, options = {}) {
        var _a, _b;
        Object.defineProperty(this, "id", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: void 0
        });
...

this fiddle show the behavior

Leave a comment