Closed rohit-gohri closed 5 years ago
Eg.:
class ProductA extends Model { static get tableName() { return 'Product' } } class ProductB extends Model { static get tableName() { return 'Product' } } async run() { console.log(await ProductA.loadById(1)); console.log(await ProductB.loadById(1)); }
Logs 2 objects both instances of ProductA
ProductA
Eg.:
Logs 2 objects both instances of
ProductA