|
|
|
@ -101,7 +101,6 @@ abstract class AbstractBeccaEntity<T extends AbstractBeccaEntity<T>> {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Saves entity - executes SQL, but doesn't commit the transaction on its own
|
|
|
|
* Saves entity - executes SQL, but doesn't commit the transaction on its own
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// TODO: opts not used but called a few times, maybe should be used by derived classes or passed to beforeSaving.
|
|
|
|
|
|
|
|
save(opts?: {}): this {
|
|
|
|
save(opts?: {}): this {
|
|
|
|
const constructorData = (this.constructor as unknown as ConstructorData<T>);
|
|
|
|
const constructorData = (this.constructor as unknown as ConstructorData<T>);
|
|
|
|
const entityName = constructorData.entityName;
|
|
|
|
const entityName = constructorData.entityName;
|
|
|
|
|