Deprecated example

new PasswordField('secret_access_key', 'secretAccessKey'))->addFlags(new Required()),
            new DateTimeField('last_usage_at', 'lastUsageAt'),
            new BoolField('admin', 'admin'),
            new CustomFields(),
            new DateTimeField('deleted_at', 'deletedAt'),

            (new OneToOneAssociationField('app', 'id', 'integration_id', AppDefinition::class, false))->addFlags(new RestrictDelete()),
            new ManyToManyAssociationField('aclRoles', AclRoleDefinition::class, IntegrationRoleDefinition::class, 'integration_id', 'acl_role_id'),
        ]);

        if (!Feature::isActive('v6.6.0.0')) {
            $collection->add((new BoolField('write_access', 'writeAccess'))->addFlags(new Deprecated('v6.5.0.0', 'v6.6.0.0')));
        }

        return $collection;
    }
}


        if (Feature::isActive('v6.6.0.0')) {
            $collection->add(
                (new IdField('referenced_id', 'referencedId'))->addFlags(new Required())
            );
            $collection->add(
                (new IdField('referenced_version_id', 'referencedVersionId'))->addFlags(new Required())
            );
        } else {
            $collection->add(
                (new JsonField('entity_id', 'entityId'))->addFlags(new Required()new Deprecated('v6.5.0', 'v6.6.0', 'Use the dedicated properties \'referencedId\' and \'referencedVersionId\''))
            );
            $collection->add(new IdField('referenced_id', 'referencedId'));
            $collection->add(new IdField('referenced_version_id', 'referencedVersionId'));
        }

        return $collection;
    }
}
Home | Imprint | This part of the site doesn't use cookies.