Skip to content

Static properties, static methods undefined after bindTransaction #395

@jovinbm

Description

@jovinbm

When I try to bind a transaction to a class, my previous static properties and methods get lost. i.e.

console.log(BlogUserXref.getIdFromUUID);
console.log(BlogUserXref.bindTransaction(trx).getIdFromUUID);

Output

[Function]
undefined

Am I missing something? I hoped that bindTransaction returned the the original class bound to the passed transaction. Thanks in advance.

Node 8.0
Objection 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions